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

library error while running

ucb
Beginner
557 Views
Hi,
An error is given when I run the code: ./SFF
./SFF: error while loading shared libraries: libimf.so.6: cannot open shared object file: No such file or directory
No error was given when I compile it. ifort SFF.for
I guess I did not set the environmental variables correctly. I do not know how to set them. NOTE, I run the code through the frontend machines (cluster).
I once try like this, but not make it.
ucbpetro@c63:~/SFFPM$ set PATH /usr/mill/pkg/intel_fc/bin
ucbpetro@c63:~/SFFPM$ set LD_LIBRARY_PATH /usr/mill/pkg/intel_fc/lib
ucbpetro@c63:~/SFFPM$ set MANPATH /usr/mill/pkg/intel_fc/man
ucbpetro@c63:~/SFFPM$ ifort -o SFF.out SFF.for
ucbpetro@c63:~/SFFPM$ ./SFF
-bash: ./SFF: No such file or directory
could you give me some suggestion?

0 Kudos
2 Replies
TimP
Honored Contributor III
557 Views
With a default dynamic link, you need the Intel compiler shared library installation visible on all nodes of the cluster where you are running, and the LD_LIBRARY_PATH must be set in the shell you open on each node. If you can make the -static-libcxa link option work, you will not need the ifort libraries at run time.
I don't believe the set commands you quote will work in the bash, sh, or tcsh shells most commonly used. Normally, you would use the same script used for setting up the environment to run ifort.
0 Kudos
ucb
Beginner
557 Views
Thanks. Finally, I made the code running.
In order to let other new learner know this. I put the solution here.
When I login to the frontend machines, I did like this:
/root$ source /usr/mill/pkg/intel_fc/bin/ifortvars.sh
then, compile it: ifort SFF.for -o SFF
./SFF .. run
Thanks for your help!!!

0 Kudos
Reply