CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Problems setting environment (http://www.cfd-online.com/Forums/openfoam-installation/57498-problems-setting-environment.html)

bastil September 7, 2007 02:33

Hi all, I have troubles to
 
Hi all,

I have troubles to set the environment on a x86_64 machine. I use the alias:

alias OpenFOAM13='export WM_64=Y &&. $HOME/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc'

to set environment for OF 1.3. Afterwards, I get the following message while trying to execute any OF program:

simpleFoam: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /home/brblo/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4DPOpt/libfiniteVolume.so)

This can by fixed by manually adding

/home/brblo/OpenFOAM/OpenFOAM-1.3/linuxAMD64/gcc-4.1.0/lib64

to my $PATH, but not for parallel runs. What is the intended way to switch from system compiler and libraries to the ones shiped with OF? I also get the warning of conflicting versions while installation check.

Thanks.

bastil September 7, 2007 02:37

EDIT: I also have to add th
 
EDIT:

I also have to add the path to $LD_LIBRARY_PATH.

msrinath80 September 7, 2007 02:46

Just recompile your solver. Al
 
Just recompile your solver. All will be fine.

bastil September 7, 2007 02:53

I wanted to avoid recompiling,
 
I wanted to avoid recompiling, is there no other way using the binaries?

Thanks

msrinath80 September 7, 2007 03:34

Just your solver. Not all of O
 
Just your solver. Not all of OpenFOAM. Go to ~/OpenFOAM/OpenFOAM-1.3/applications/solvers/your_solver_directory and run wclean && wmake there.

mattijs September 7, 2007 03:49

For parallel runs you'll have
 
For parallel runs you'll have to make sure your default environment sets up 1.3 and all its paths (such as /home/brblo/OpenFOAM/OpenFOAM-1.3/linuxAMD64/gcc-4.1.0/lib64)

The problem is that mpirun uses 'ssh' to start processes which does not inherit any settings. It will execute .bashrc so that should be such that it sets up any Foam specifics.

gschaider September 7, 2007 04:23

Another possibility for parall
 
Another possibility for parallel run would be to export a minimal environment via mpirun (this has worked for me in the past with OpenMPI):

Add the options
-x LD_LIBRARY_PATH -x WM_PROJECT_DIR -x FOAM_MPI_LIBBIN
to the mpirun-call. Of course this assumes that the paths are the same on all your machines

bastil September 7, 2007 04:28

Thanks for these tipps, I will
 
Thanks for these tipps, I will try them out and get back to you. Nevertheless, I guess I am doing something wrong because I have to add a dictionary to the $LD_LIBRARY_PATH manually. What is wrong there?


All times are GMT -4. The time now is 10:00.