CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

mpicc link doesn't update when moving OF 2.2.1 installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
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
  #1
Member
 
Brock Lee
Join Date: Sep 2012
Location: Midwest
Posts: 40
Rep Power: 14
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...

Code:
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.

Thanks!

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
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
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:
Code:
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:
Code:
export OPAL_LIBDIR=$OPAL_PREFIX/lib64
For more information: http://www.open-mpi.org/faq/?categor...ng#installdirs

Best regards,
Bruno

PS: Feel free to report this to OpenFOAM's bug tracker: http://www.openfoam.org/bugs/
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
compile, installation, move, mpicc


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 17:54.