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

Problems setting environment

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2007, 03:33
Default Hi all, I have troubles to
  #1
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
bastil is on a distinguished road
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 is offline   Reply With Quote

Old   September 7, 2007, 03:37
Default EDIT: I also have to add th
  #2
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
bastil is on a distinguished road
EDIT:

I also have to add the path to $LD_LIBRARY_PATH.
bastil is offline   Reply With Quote

Old   September 7, 2007, 03:46
Default Just recompile your solver. Al
  #3
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Just recompile your solver. All will be fine.
msrinath80 is offline   Reply With Quote

Old   September 7, 2007, 03:53
Default I wanted to avoid recompiling,
  #4
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
bastil is on a distinguished road
I wanted to avoid recompiling, is there no other way using the binaries?

Thanks
bastil is offline   Reply With Quote

Old   September 7, 2007, 04:34
Default Just your solver. Not all of O
  #5
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Just your solver. Not all of OpenFOAM. Go to ~/OpenFOAM/OpenFOAM-1.3/applications/solvers/your_solver_directory and run wclean && wmake there.
msrinath80 is offline   Reply With Quote

Old   September 7, 2007, 04:49
Default For parallel runs you'll have
  #6
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Old   September 7, 2007, 05:23
Default Another possibility for parall
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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
gschaider is offline   Reply With Quote

Old   September 7, 2007, 05:28
Default Thanks for these tipps, I will
  #8
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
bastil is on a distinguished road
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?
bastil is offline   Reply With Quote

Reply


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
Setting working environment variable Arthur FLUENT 0 December 10, 2008 05:33
Setting Environment Variables PETER P. CFX 1 August 3, 2008 19:33
FoamX problems with Java and Locale setting AMD64 geimerma OpenFOAM Installation 5 July 7, 2006 17:21
Problems setting up semitransparent media Tim FLUENT 0 March 8, 2001 03:49


All times are GMT -4. The time now is 01:40.