- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
I want to run a subroutine written in FORTRAN within an engineering software package. The compilation went well but apparently a shared library is missing as I have this error message:
error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory
I am using a Linux OS.
Any help would be appreciated.
Pierre
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
source /opt/intel/bin/compilervars.sh intel64
will add the library path to LD_LIBRARY_PATH.
If running where the shared library isn't present, you may install the redistributable library package, or take other remedies such as copying the library over and adding it yourself to LD_LIBRARY_PATH, or linking libiomp5.a (in your final link, preferably not when making a .so).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot for your answer. Actually, I can locate the shared library libiomp5.so under the Intel directory but the compiler cannot find it on its own. Do you know how to add the library to LD_LIBRARY_PATH?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
export LD_LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.7.256/compiler/lib/intel64:$LD_LIBRARY_PATH
(use the path where you found it)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ export LD_LIBRARY_PATH=
Note the colon separating the components of LD_LIBRARY_PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I issued exactly this command in the terminal:
$export LD_LIBRARY_PATH=home/tph201/intel/Compiler/11.0/081/lib/intel64:$LD_LIBRARY_PATH
and the Bash replied:
LD_LIBRARY_PATH=home/tph201/intel/Compiler/11.0/081/lib/intel64:: No such file or directory
I have double-checked that the path is correct. Should I try to re-install Intel compiler?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There should be a slash character ('/') preceding home.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot Tim and Mecej for your patience. I managed to export the LD_LIBRARY_PATH as followed this steps:
me:~$ /home/tph201/intel/Compiler/11.0/081/lib/intel64
bash: /home/tph201/intel/Compiler/11.0/081/lib/intel64: is a directory
me:~$ export LD_LIBRARY_PATH=/home/tph201/intel/Compiler/11.0/081/lib/intel64
me:~$ echo $LD_LIBRARY_PATH
bash: /home/tph201/intel/Compiler/11.0/081/lib/intel64
But the shared library is still missing when I run the code afterwards. I will try to reinstall ifort.
Cheers,
Pierre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
assuming you have installed the latest Intel Composer XE 2011 Update 8. Could you please verify that libiomp5.so is present in
Also, after sourcing the environment like this (as described in an earlier post)
source
$LD_LIBRARY_PATH
This has to be set every time you're executing your application (or you install the library to a system wide library directory).
Best regards,
Georg Zitzlsberger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
same kind of error while running the matrix multiplication for mic ...sample code from vtune amplifier.
and my bashrc
export PATH=/opt/intel/composer_xe_2013.0.079/bin/intel64_mic/:$PATH
export INCLUDE=/opt/intel/composer_xe_2013.0.079/compiler/include/mic/:$INCLUDE
export LD_LIBRARY_PATH=/opt/intel/composer_xe_2013.0.079/compiler/lib/mic/:$LD_LIBRARY_PATH
export PATH=/opt/intel/impi/4.1.0.018/mic/bin/:$PATH
export INCLUDE=/opt/intel/impi/4.1.0.018/mic/include/:$INCLUDE
export LD_LIBRARY_PATH=/opt/intel/impi/4.1.0.018/mic/lib/:$LD_LIBRARY_PATH
./matrix.mic: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
just copy that libiomp5.so file to mic card
scp libiomp5.so username@mic0:/tmp
and then run that executable.
Thank you
kiran sonavane.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page