|
[Sponsors] |
April 13, 2012, 17:42 |
environment variables- CAE Linux
|
#1 |
New Member
neha
Join Date: Apr 2012
Posts: 3
Rep Power: 14 |
For OpenFOAM on CAE Linux platform, how do I configure the environment?
e.g. adding the following line to $HOME/.bashrc does not work . $HOME/OpenFOAM/OpenFOAM-2.0.1/etc/bashrc I tried changing the path to opt/openfoam201/etc/bashrc, but then sourcing by . $HOME/.bashrc does not do anything. I would really appreciate any help on this. |
|
April 14, 2012, 06:46 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings kal and welcome to the forum!
Edit your "$HOME/.bashrc" file and add this line (or modify the line you added to this): Code:
. /opt/openfoam201/etc/bashrc Good luck! Bruno
__________________
Last edited by wyldckat; April 14, 2012 at 06:47. Reason: see "edit:" |
|
April 15, 2012, 11:05 |
|
#3 |
New Member
neha
Join Date: Apr 2012
Posts: 3
Rep Power: 14 |
Thanks for your reply! I tried to put the line you suggested in the bashrc file, save, and execute . $HOME/.bashrc.
However, when I run foamInstallationTest, I still get the error that the OpenFOAM environment is not configured. This is how it looks like: neha@neha:~$ gedit ~/.bashrc neha@neha:~$ . $HOME/.bashrc neha@neha:~$ foamInstallationTest Executing /opt/openfoam201/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- FATAL ERROR: OpenFOAM environment not configured. Please refer to the installation section of the README file: <OpenFOAM installation dir>/OpenFOAM-2.0.1/README to source the OpenFOAM environment. Please let me know if you can figure out what the error is from this. Thanks again! |
|
April 15, 2012, 16:52 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi kal,
The script foamInstallationTest was designed for source builds only and will not work for the Deb and RPM packages. In CAE Linux, it used a Deb package, so that is why it doesn't work. The standard test is to run: Code:
icoFoam -help Best regards, Bruno
__________________
|
|
April 16, 2012, 11:06 |
|
#5 |
New Member
neha
Join Date: Apr 2012
Posts: 3
Rep Power: 14 |
OK.. Thanks for your help Bruno!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
'Set Environment Variables' for Fluent 12 | DarrenC | Fluent UDF and Scheme Programming | 2 | May 25, 2011 15:51 |
Dual Boot Windows and Linux and Go Open Source | andyj | Main CFD Forum | 2 | October 21, 2010 16:49 |
1.7.x Environment Variables on Linux 10.04 | rasma | OpenFOAM Installation | 9 | July 30, 2010 04:43 |
Gentoo Environment Variables | scottneh | OpenFOAM Installation | 1 | September 20, 2009 12:21 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |