CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

mpicc link doesn't update when moving OF 2.2.1 installation

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2013, 18:43
Default mpicc link doesn't update when moving OF 2.2.1 installation
Brock Lee
Join Date: Sep 2012
Location: Midwest
Posts: 40
Rep Power: 10
GRAUPS is on a distinguished road
Hey guys, I've got a bit of a problem. I'm compiling OF 2.2.1 from the source on a cluster inside my home directory. The compilation goes without a hitch. I'm using the OpenMPI included with OF. After testing in my home directory, I decided to move it to another location so that other users can access it. These are the steps I followed to move the install...

1.) Copied OpenFOAM-2.2.1 and ThirdParty-2.2.1 folders to new location
2.) Updated the new install directory inside OpenFOAM-2.2.1/etc/bashrc
3.) Changed my .bashrc file to source the shared OpenFOAM install instead of the one I had in my home directory.

At this point I closed down the terminal and re-opened a fresh one and once again did some testing. Everything was working great until I deleted my local home directory install. At that point OpenMPI started to fail on parallel runs. After some investigation, I found that the link to mpicc was still referring to the old location. The command...

mpicc --showme:link
... yields the old location.

So my questions are...
1.) How do I fix this?
2.) Is there a way to fix this at compile time?

In previous OF installs I never had this issue. But it seems like there are multiple library files that get hard linked to the original install location in this implementation.


Last edited by GRAUPS; October 17, 2013 at 19:35. Reason: Added additional details
GRAUPS is offline   Reply With Quote

Old   October 19, 2013, 08:45
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,957
Blog Entries: 45
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Brock,

Apparently there is a glitch somewhere in Open-MPI 1.6.3 that requires to have the following two variables defined manually:
export OPAL_PREFIX=/cluster/opt/OpenFOAM/openmpi-1.6.3
export OPAL_LIBDIR=/cluster/opt/OpenFOAM/openmpi-1.6.3/lib64
The paths are just an example.

It's possible that the problem is that it's thinking about "$OPAL_PREFIX/lib" instead of "$OPAL_PREFIX/lib64", when it uses the variable "OPAL_PREFIX" defined by OpenFOAM's environment scripts.

You can simply add the following line after the environment is ready:
For more information:

Best regards,

PS: Feel free to report this to OpenFOAM's bug tracker:
wyldckat is offline   Reply With Quote


compile, installation, move, mpicc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error by OpenFOAM 2.2.1 installation Mirage12 OpenFOAM Installation 16 November 30, 2013 02:53
[Other] How to set up a dynamic mesh for a piston moving through a tube of variable diameter? karkar OpenFOAM Meshing & Mesh Conversion 0 July 4, 2012 07:54
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
Error in apt-get update for installation of OpenFoam 1.7.1 on Ubuntu 10.10 StuntedChicken OpenFOAM Installation 1 January 9, 2011 11:43
Moving mesh in Fluent fivos FLUENT 0 April 2, 2010 10:45

All times are GMT -4. The time now is 15:36.