Search
Support & Downloads
All of Support
This Category
This Product
Software Products
Intel® Math Kernel Library (Intel® MKL) for Linux*
Adding shared libraries environment path / common runtime errors

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:
Intel® Math Kernel Library (Intel® MKL) for Linux*

Solution ID: CS-017267
Date Created: 22-Nov-2004
Last Modified: 12-Feb-2008