-   Linux - Software (
-   -   cannot find mpicc libraries (

KBriggs 01-06-2011 09:16 AM

cannot find mpicc libraries
Hey all,

I am trying to compile some software written by a colleague in the lab that uses mpicc. When it is compiled on his account, it works fine, but fails on mine (on the same machine). When I type simply


I get the error

/usr/lib64/mpi/mpi-openmpi-intel/usr/bin/mpicc: error while loading shared libraries: cannot open shared object file: No such file or directory

Can anyone suggest a fix? I am quite new to this, so I am hesitant to mess around in .bashrc or .aliases before I have a little more information.

knudfl 01-06-2011 09:55 AM

How about : locate

'' is a well known Intel file, and it looks like you have
a special "mpi/mpi-openmpi-intel", where it could be included.
( Probably in /usr/lib64/mpi/mpi-openmpi-intel/usr/lib/ ? )

Suggest :
export LD_LIBRARY_PATH=/usr/lib64/mpi/mpi-openmpi-intel/usr/lib && mpicc
... if that's the correct location.


KBriggs 01-06-2011 10:18 AM


locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old

Not sure how to interpret this - is one of those the correct path it should be looking in?

knudfl 01-06-2011 11:14 AM

If you have root access : 1) su , 2) updatedb (or sudo updatedb)
.. to update the data base for 'locate'.

But if you have no more copies of then the installed file is
/opt/intel/Compiler/11.1/056/lib/intel64/ .

( /home/diskless-usr/opt/intel/Compiler/11.1/056/lib/intel64/
looks just like a copy of the /opt/intel/Compiler/ files.)

export LD_LIBRARY_PATH=/opt/intel/Compiler/11.1/056/lib/intel64 && mpicc
... should work.

KBriggs 01-06-2011 01:01 PM

Hm, thanks, that turned out to be part of the solution. I also had to add various things to the PATH and INCLUDE environment variables.

All times are GMT -5. The time now is 06:44 PM.