CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   centfoam 2.2.x on RHEL 5.10 clone (

ericpaul November 6, 2013 17:53

centfoam 2.2.x on RHEL 5.10 clone
I just installed centfoam 2.2.x on a Springdale 5.10 (RHEL 5.10 clone) cluster in /opt so it can be used by all users. When I run the command 'mpicc --showme:link' I get the following output:

-pthread -L/home/centfoam/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/openmpi-1.6.3/lib64 -lmpi -ldl -lm -Wl,--export-dynamic -lrt -lnsl -lutil -lm -ldl

Notice the path for the link is /home/centfoam/ instead of /opt. With previous versions of centfoam the output gave the proper path to /opt. Is there an easy way to fix this.

The reason I as is my users are getting the following error when compiling with mlicc:

/usr/bin/ld: cannot find -lmpi_cxx

It seem it may be related to this linker having the wrong defaults.


wyldckat November 9, 2013 13:00

Greetings Eric and welcome to the forum!

Try the instructions given here:
For example:

export OPAL_PREFIX=/opt/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/openmpi-1.6.3
But it's possible that Open-MPI 1.6.3 is no longer honouring these environment variables...

Best regards,

All times are GMT -4. The time now is 03:51.