Subject: [mongodb-user] Re: Mongodb C++ driver - test code
I have the same error as Kartik Desai.
I amb using Ubuntu 16.04, mongo-c-driver-1.6.3.tar.gz and mongo-cxx-driver r3.1.2.tar.gz
I compiled C driver and C++ as described in https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/ defining /usr/local as a prefix path
Test defined in Step 6 doesn't work for me. I compiled it with:
c++ --std=c++11 test.cpp -o test $(pkg-config --cflags --libs libmongocxx)
I also definied export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
It compiles without errors but when I try to execute with ./test it raises the following error:./test: error while loading shared libraries: libmongocxx.so._noabi: cannot open shared object file: No such file or directory
libmongocxx.so._noabi is localted /usr/local/lib with a link to libmongocxx.so.3.1.2 => libmongocxx.so._noabi -> libmongocxx.so.3.1.2
Do you know what can be wrong or what can I look for to be able to run the test without errors?
El dimecres, 22 febrer de 2017 22:22:00 UTC+1, David Golden va escriure:Hi, Kartik.
What operating system are you using? Could you please post the exact commands you ran and the corresponding output?
On Wednesday, February 22, 2017 at 12:34:11 AM UTC-5, Kartik Desai wrote:Hey david I was also facing the same problem and I don't see that you ran make && sudo make install before compiling the test program. t
his solution worked for me and I am able to compile the program. executable is generated but get this error now : /test: error while loading shared libraries: libmongocxx.so._noabi: cannot open shared object file: No such file or directory
You received this message because you are subscribed to the Google Groups "mongodb-user"
For other MongoDB technical support options, see:
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]
To post to this group, send email to [email protected]
Visit this group at https://groups.google.com/group/mongodb-user
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/abee07aa-ed89-4343-8e14-9fbd365e655e%40googlegroups.com
For more options, visit https://groups.google.com/d/optout