On Wed, Mar 03, 2010 at 07:17:43PM +0100, Alexander Koglin wrote:
Hi everybody,
I tried to setup an Eclipse project by linking the libMapi against it and adding some entities to MonetDB SQL and always get the following error:
*.../Project/Debug/Project: error while loading shared libraries: libMapi.so.1: cannot open shared object file: No such file or directory*
After all linking and compiling goes alright. When Invoking the GCC C++ Compiler I call the following directive:
*g++ -I/usr/local/Tarari/include -I/root/MonetDB/include/MonetDB -I/root/xerces-2.8/include -O0 -g3 -Wall -c -fmessage-length=0 `monetdb-clients-config --cflags --libs` -MMD -MP -MF"src/IndexHandler.d" -MT"src/IndexHandler.d" -o"src/IndexHandler.o" "../src/IndexHandler.cpp" g++ -I/usr/local/Tarari/include -I/root/MonetDB/include/MonetDB -I/root/xerces-2.8/include -O0 -g3 -Wall -c -fmessage-length=0 `monetdb-clients-config --cflags --libs` -MMD -MP -MF"src/MonetMapiUpdater.d" -MT"src/MonetMapiUpdater.d" -o"src/MonetMapiUpdater.o" "../src/MonetMapiUpdater.cpp" g++ -I/usr/local/Tarari/include -I/root/MonetDB/include/MonetDB -I/root/xerces-2.8/include -O0 -g3 -Wall -c -fmessage-length=0 `monetdb-clients-config --cflags --libs` -MMD -MP -MF"src/NodeFetcher.d" -MT"src/NodeFetcher.d" -o"src/NodeFetcher.o" "../src/NodeFetcher.cpp"*
When invoking the GCC C++ Linker I call the following directive:
*g++ -L/usr/local/Tarari/lib -L/root/MonetDB/lib -L/root/xerces-2.8/lib `monetdb-clients-config --cflags --libs` -o"NodeFetcherCPP" ./src/IndexHandler.o ./src/MonetMapiUpdater.o ./src/NodeFetcher.o -lMapi -ltararixpath -lxerces-c *
What can be the reason for the error during execution?
well, the reason is that at runtime the loader does not find the libMapi.so.1 Here are some questions fro you; their answers might help us (or you) to find out why the loader does not find the shared library libMapi.so.1 when it need to load it at runtime: - Which version of MonetDB are you using? - On which system are you running MonetDB - How did you install MonetDB? - What does `ls -alF /root/MonetDB/lib*/libMapi*` say? Stefan
Thank you for any help, Alexander
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ MonetDB-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4199 |