LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-31-2005, 05:21 AM   #1
terrence
LQ Newbie
 
Registered: Aug 2005
Location: carribean
Distribution: fedora core 4
Posts: 26

Rep: Reputation: 15
error Linux Fortran compiler: libimf.so


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


hello, the above is the error i get when i tried to run a program after compiling it with ifort, intel's linux fortran compiler.

any suggestions on solving the problem?
thanks for the help.
 
Old 09-01-2005, 03:07 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,474

Rep: Reputation: 155Reputation: 155
"error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory"

"the above is the error i get when i tried to run a program after compiling it with ifort, intel's linux fortran compiler."

When you compile with Intel's Fortran you should run against the Intel supplied libm, not the Linux supplied libm. I am not familiar enough with Intel's Fortran to be certain but I think that you should try adding -i_dynamic to the Intel Fortran compiler parameters and don't use -lm.


-----------------------
Steve Stites
 
Old 11-04-2006, 12:55 PM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Rep: Reputation: 30
I'm having the same problem, but adding -i-dynamic makes no difference.
Note that -i_dynamic is suggested in previous post, but my intel compiler help shows -i-dynamic.

I have the file in /opt/intel/fc/9.0/lib/libimf.so.
Adding this to the .bashrc file might help:

LD_LIBRARY_PATH="/opt/intel/fc/9.0/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

Last edited by allelopath; 11-04-2006 at 01:21 PM.
 
Old 11-04-2006, 01:38 PM   #4
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi, Terrence -

As allelopath pointed out, the problem is that any program you build with the Intel compiler needs the Intel shared library "libimf.so", which is NOT in the default library path.

One solution is to set the environment variable LD_LIBRARY_PATH. You need to do this for each user who might run the program, or globally in /etc/bashrc.

Another solution might be to add the Intel directory to your system's default library path, so it's available at all times to all users:
Quote:
modify /etc/ld.so.conf, then run ldconfig.
Here are a couple of links that might explain better:

http://www.tldp.org/HOWTO/Program-Li...libraries.html

http://en.wikipedia.org/wiki/Library_(computer_science)

Cheers .. PSM
 
Old 11-06-2006, 02:46 PM   #5
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Rep: Reputation: 30
Thanks for the tip about /etc/ld.so.conf

I also want to point out that if using eclipse/photran, you can add the definition of LD_LIBRARY_PATH in the Debug dialog under the Environment tab.

Last edited by allelopath; 01-15-2007 at 10:18 PM.
 
Old 06-15-2012, 02:41 AM   #6
atanusarkar1986
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
compilation problem

hi,
when i am trying to run cpmd i get the following error
mpirun: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
can you suggest me how to overcome this error?
its really urgent....please help
 
Old 06-15-2012, 03:51 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Post # 6, @ atanusarkar1986 : Welcome to LQ.

Usually something like ..
export LD_LIBRARY_PATH=/home/<user>/intel/lib/<arch>/libimf.so
Or : LD_LIBRARY_PATH=/opt/intel/lib/<arch>/libimf.so
( Where <arch> is one of intel64/, ia32/ ).

.... Or : cd /usr/local/lib/ && ln -s <path-to>/libimf.so

( The Intel compiler must be installed to have the 'libimf.so' ).

.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
any recommendations for a fortran compiler for linux? buddy_epson Programming 3 08-18-2006 02:00 AM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM
fortran compiler and guide? spacetrooper Programming 4 03-23-2005 06:48 PM
Fortran Compiler in SuSE? Krater47 Linux - Software 4 09-09-2004 12:10 AM
Fortran Compiler bob10a Linux - Software 14 07-19-2003 04:34 AM


All times are GMT -5. The time now is 04:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration