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

Problem with sourcing environmental variables

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2009, 20:13
Default Problem with sourcing environmental variables
  #1
New Member
 
Nicholas
Join Date: May 2009
Location: Seattle, USA
Posts: 18
Rep Power: 17
nickninevah is on a distinguished road
Hi all,

Someone please come to my rescue. I'm trying to install OpenFOAM, but for some reason, the environmental variables are not recognized. I'm using SUSE 11.1 I downloaded the latest version of OpenFOAM from git. And I added the following lines to my .bashrc file:

Code:
#source for environmental variables of openFOAM
$HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc
I then sourced the edited .bashrc file. But when I check to see if any of the variables are there, nothing shows up. See the following code as an example. (I included the $HOME variable to prove that it does work in a general sense.)

Code:
nicholas@linux-jgui:~> source .bashrc
nicholas@linux-jgui:~> echo $HOME
/home/nicholas
nicholas@linux-jgui:~> echo $FOAM_INST_DIR

nicholas@linux-jgui:~>
Which you can guess that since this doesn't work, nothing else works either. Any help on this, please. And I'm a bright fresh linux user. So please feel free to explain everything simply and in complete detail. Thanks again for all the help.
nickninevah is offline   Reply With Quote

Old   May 24, 2009, 04:22
Default
  #2
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Nicholas,

There is a dot missing in your sourcíng line in bashrc. Now it is
Code:
$HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc
and it should be

Code:
 . $HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc
Note the ".".

Regards,

Gijsbert
gwierink is offline   Reply With Quote

Old   May 25, 2009, 13:15
Default Thanks
  #3
New Member
 
Nicholas
Join Date: May 2009
Location: Seattle, USA
Posts: 18
Rep Power: 17
nickninevah is on a distinguished road
Thanks for that. It's always the little things that are hard to find.
nickninevah is offline   Reply With Quote

Reply

Tags
bashrc, environmental variables, installataion


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
ADDITIONAL VARIABLES LIMITERS N.P CFX 5 December 1, 2011 08:47
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Problem in Tutorial problem of fluent Phanindra FLUENT 5 April 17, 2007 10:57
problem with using colocated code Jack Main CFD Forum 0 December 15, 2002 01:15


All times are GMT -4. The time now is 03:19.