|
Compile example:
gcc -o foo foo.c -I/opt/intel/mkl/10.0/include /opt/intel/mkl/10.0/32/lib/libmkl.so ... Results in runtime error when loading shared libraries during execution:
- ./foo: error while loading shared libraries
- libmkl.so: cannot open shared object file
- No such file or directory
Before using the Intel® MKL shared libraries, update the system variable LD_LIBRARY_PATH to include the libraries location. For example, if the Intel MKL libraries are in the /opt/intel/mkl/10.0/32/lib directory, and then the following command line can be used (assuming a bash shell):
export LD_LIBRARY_PATH=/opt/intel/mkl/10.0/32/lib:$LD_LIBRARY_PATH
This applies to:
|