Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Problem with libimf.so

joeanddeborah
Beginner
1,015 Views
Hello, For some reason, ifort cannot find "libimf.so" even though I have confirmed it is in /lib I get the same error message whether I'm logged in as a user or root. Has anyone else had this problem?
Thanks Joe
0 Kudos
5 Replies
TimP
Honored Contributor III
1,015 Views
More details? For example, are you trying to mix architectures between your build and the library present on LD_LIBRARY_PATH ?
If 'ldd yourexecutable' doesn't show the dependency on libimf, then I suspect it's a bug, which may be corrected by adding -limf to your compile/link options. I believe ifort should always automatically include -limf, but I have seen it fail to do so.

Message Edited by tim18 on 02-10-2006 01:55 PM

0 Kudos
joeanddeborah
Beginner
1,015 Views
Ahhh, I think you're on to something. I have KDevelop 3.3.1 installed and it requires the following line in my .bash_profile:

export LD_LIBRARY_PATH=$QTDIR/lib:$KEDIR/lib:$LD_LIBRARY_PATH

and, of course, ifortvars.sh has

if [ -z "${LD_LIBRARY_PATH}" ]
then
LD_LIBRARY_PATH="/opt/intel/fc/9.0/lib"; export LD_LIBRARY_PATH
else
LD_LIBRARY_PATH="/opt/intel/fc/9.0/lib:$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH
fi

I am brand new to Linux, so forgive me if this is obvious. But, is there a conflict here that I need to clean up?

Joe
0 Kudos
TimP
Honored Contributor III
1,015 Views
You need the LD_LIBRARY_PATH set in accordance with that ifortvars.sh if you are using the 32-bit or ia64 compiler. If you are using the em64t compiler, you need it set in accordance with /opt/intel/fce/9.0/bin/ifortvars.sh.
0 Kudos
joeanddeborah
Beginner
1,015 Views
Okay, so how exactly do I fix the problem? All I am atempting to do is compile and make the int_sin.f90 example to confirm proper ifort installation.
0 Kudos
joeanddeborah
Beginner
1,015 Views
Never mind, I figured it out. If I put the lines in my .bashrc script instead of my .bash_profile script, it works just fine. Thanks, Tim, for your help! Linux has a very steep learning curve, I guess. At least, it does for me :-)
0 Kudos
Reply