Search
Support & Downloads
All of Support
This Category
This Product
Software Products
Intel® C++ Compiler for Linux*
Error while loading shared libraries: [shared lib]: cannot open shared object

If this error message references an Intel shared runtime library, such as libsvml.so, then this implies that the Linux* loader was not able to locate the library. First check that you have the Intel lib directory in your LD_LIBRARY_PATH environment variable. However, this can still be a problem when running a program where a new shell is created to run the program (such as MPICH). To fix this problem, link the Intel provided libraries statically with the -static-libcxa or -static-intel flags or add the -rpath linker option so the executables can find the libraries at runtime, for example:

icpc test.cpp -Xlinker -rpath -Xlinker /opt/intel/cc/9.1/lib

Note that anyone using a binary compiled with the -rpath option will need those libs to exist in that directory path as well, so you may have to redistribute the Intel provided libraries with your application.

This applies to:
Intel® C++ Compiler for Linux*

Solution ID: CS-010097
Date Created: 21-Mar-2004
Last Modified: 05-Jun-2007