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

Problem with sourcing environmental variables

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 23, 2009, 19:13
Default Problem with sourcing environmental variables
  #1
New Member
 
Nicholas
Join Date: May 2009
Location: Seattle, USA
Posts: 18
Rep Power: 8
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, 03:22
Default
  #2
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 9
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, 12:15
Default Thanks
  #3
New Member
 
Nicholas
Join Date: May 2009
Location: Seattle, USA
Posts: 18
Rep Power: 8
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

Thread Tools
Display Modes

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 On
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 32 May 8, 2015 06: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 19:13
Problem in Tutorial problem of fluent Phanindra FLUENT 5 April 17, 2007 09: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 13:45.