- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!!!

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