Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

libifport.so.5 not found

esoasil
Beginner
12,784 Views
Dear All,

After i successfully compiled a programm with the Non-Comercial Fortran Compose XE 2011in an CentOs (RedHat-Derivate) buti always recieved an Error-Message everytime i execute my programm from console:

error while loading shared libraries: libifort.so.5: cannot open shared object file: No such file or directory

But if ido the statement

bin~$ source [MyInstallDir]/bin/compilervars.sh intel64

on my local home directory before, my program works correctly.

Soi thought it could be an Path Problems, and itryed toplace this statement on my /etc/profile file. But unfortunatelly it doesn't help at all.

Couldyou help meto solvethis problem?

Thank you in advance

Soasil

0 Kudos
1 Solution
mecej4
Honored Contributor III
12,784 Views
You came close to solving the problem yourself.

Just as the PATH environment variable is searched for executable files, it is the LD_LIBRARY_PATH variable whose value contains a colon (:) separated list of paths which are searched for shared libraries.

Thus, if you want to run an executable that was produced in an earlier session, and you have not sourced the Intel Fortran startup shell script, do

$ export LD_LIBRARY_PATH=<path of directory containing libifport.so.5>

View solution in original post

0 Kudos
2 Replies
mecej4
Honored Contributor III
12,785 Views
You came close to solving the problem yourself.

Just as the PATH environment variable is searched for executable files, it is the LD_LIBRARY_PATH variable whose value contains a colon (:) separated list of paths which are searched for shared libraries.

Thus, if you want to run an executable that was produced in an earlier session, and you have not sourced the Intel Fortran startup shell script, do

$ export LD_LIBRARY_PATH=<path of directory containing libifport.so.5>
0 Kudos
esoasil
Beginner
12,784 Views
Hallo mecej4,

Thanks for the clue, it works perfectly now, i followed your first suggestion and added a *.conf Data referencing to Ifort/lib in /etc/ directory.

Regards

Soasil
0 Kudos
Reply