Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Error while loading shared libraries: libimf.so although its there!

intel1
Beginner
367 Views
I'm using Eclipse to write a program in C and I've just installed ICC to switch to it from GCC. My program compiles fine but when it comes to running, I get an error message as follows:

/home/phil/workspace/forced3d2/Release/forced3d2: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

I've already entered "source /opt/intel/cc/10.0.023/bin/iccvars.sh" and "source /opt/intel/idb/10.0.023/bin/idbvars.sh" into the terminal and LD_LIBRARY_PATH is set to /opt/intel/cc/10.0.023/lib.

I don't know what else to try, can anyone give me any pointers?
0 Kudos
2 Replies
Miwako_T_Intel
Employee
367 Views

Hi.

Have you tried adding LD_LIBRARY_PATH /opt/intel/cc/10.0.023/lib

under Environment tab when you create a new configuration under "Run" or "Debug"?

Also http://www.linuxquestions.org/questions/showthread.php?t=358754
seems to list some things you can try.

0 Kudos
intel1
Beginner
367 Views
MADmtokugaw, you are a lifesaver, I was literally pulling my hair out!!

For anyone else that stumbles across this via a search, the properties of the project had the LD_LIBRARY_PATH set already - which is where I looked first. Adding LD_LIBRARY_PATH /opt/intel/cc/10.0.023/lib to the environment tab on the *Run...* option did the trick. :)
0 Kudos
Reply