|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 21 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 21 ![]() |
EDIT:
I also have to add the path to $LD_LIBRARY_PATH. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 22 ![]() |
Just recompile your solver. All will be fine.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 21 ![]() |
I wanted to avoid recompiling, is there no other way using the binaries?
Thanks |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 22 ![]() |
Just your solver. Not all of OpenFOAM. Go to ~/OpenFOAM/OpenFOAM-1.3/applications/solvers/your_solver_directory and run wclean && wmake there.
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 27 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 52 ![]() ![]() |
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 21 ![]() |
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?
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting working environment variable | Arthur | FLUENT | 0 | December 10, 2008 04:33 |
Setting Environment Variables | PETER P. | CFX | 1 | August 3, 2008 18:33 |
FoamX problems with Java and Locale setting AMD64 | geimerma | OpenFOAM Installation | 5 | July 7, 2006 16:21 |
Problems setting up semitransparent media | Tim | FLUENT | 0 | March 8, 2001 02:49 |