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

environment variables- CAE Linux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2012, 17:42
Default environment variables- CAE Linux
  #1
kal
New Member
 
neha
Join Date: Apr 2012
Posts: 3
Rep Power: 14
kal is on a distinguished road
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.
kal is offline   Reply With Quote

Old   April 14, 2012, 06:46
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 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
edit: I forgot to mention that you can also execute this line directly on the terminal window.

Good luck!
Bruno
__________________

Last edited by wyldckat; April 14, 2012 at 06:47. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   April 15, 2012, 11:05
Default
  #3
kal
New Member
 
neha
Join Date: Apr 2012
Posts: 3
Rep Power: 14
kal is on a distinguished road
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!
kal is offline   Reply With Quote

Old   April 15, 2012, 16:52
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
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
If it shows the help instructions for icoFoam, then it's working. You can see this information here: http://www.openfoam.org/download/ubuntu.php - section "User Configuration".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 16, 2012, 11:06
Default
  #5
kal
New Member
 
neha
Join Date: Apr 2012
Posts: 3
Rep Power: 14
kal is on a distinguished road
OK.. Thanks for your help Bruno!
kal 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
'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


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