Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29434 ディスカッション

Shared library error

ksasidhar
ビギナー
1,069件の閲覧回数
I am using Intel fortran for linux machines with redhat 7.3 and redhat Enterprise linux WS. When I run the code it shows following error.
./a.out: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory.
I dont know what it means. Can you help me over this. Thanks in advance
0 件の賞賛
4 返答(返信)
TimP
名誉コントリビューター III
1,069件の閲覧回数
Unless you have linked with -i-static, you must have the LD_LIBRARY_PATH pointing to a copy of the library directory which comes with your Intel compiler.
ksasidhar
ビギナー
1,069件の閲覧回数
Hi. Thanks for the reply. I dont have LD_LIBRARY_PATH in my intel fortran lib folder. Do I have to copy the file to that folder. If so can you tell me where I can get that file from. thanks.
Sasidhar Kondaraju
TimP
名誉コントリビューター III
1,069件の閲覧回数
If you don't want to install the compiler, you can copy the library. When you run the library environment script (ifortvars.sh or equivalent) it sets LD_LIBRARY_PATH, so you can see where the library is.

'ldd yourexecutable' will show which dynamic libraries are needed. Copy the /lib folder with the required .so files to your execute computer, and set LD_LIBRARY_PATH.
rgmayoral
ビギナー
1,069件の閲覧回数
I had this problem only while on a KDE environment. I solved it by setting to 'konsole --ls' the application command in the konsole properties, instead of the default 'konsole'
返信