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

foamInstallationTest Environment not configured

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2009, 11:51
Talking foamInstallationTest Environment not configured
  #1
New Member
 
Mahziron
Join Date: Sep 2009
Posts: 5
Rep Power: 17
mahzironrazak is on a distinguished road
Hi all

I am trying to install OpenFOAM on my Opensuse 10.3 32 bit. The problem is that when i run the foamInstallationtest, it always says environment variable not configured. I dont know why. I did everything according to the installation procedure.

1) Extract everything in the $Home/OpenFOAM/OpenFOAM-1.5/ directory
2) Edit the bashrc file by adding . $Home/OpenFOAM/OpenFOAM-1.5/etc/bashrc at
the end of the file using Kate
3) source the bashrc by typing . $HOME/.bashrc in the terminal (close and open the
terminal)
4) Run the foamInstallationTest
This i got fatal error because environment variable not configured.

I read all the posts but still cannot figure out why the variable wont configure. I tested on 3 different pcs running suse10.3 and 11 and still no go. I put the dot and space before the $HOME/OpenFOAM... I also tried different version of Openfoam (1.6 and 1.4) still get the same result.

Help Pleaseeeeeeeeeeeeeeee

mahziron
mahzironrazak is offline   Reply With Quote

Old   September 25, 2009, 20:37
Default
  #2
Member
 
Scott
Join Date: Sep 2009
Posts: 30
Rep Power: 17
scottneh is on a distinguished road
I just resolved this issue.

In the terminal execute:

nano ~/.bashrc

this depends on the editor you use, mine is nano.

then in the editor enter:

export FOAM_INST_DIR=path/to/OpenFOAM
foamDotFile=$FOAM_INST_DIR/OpenFOAM-1.6/etc/bashrc
[ -f $foamDotFile ] && . $foamDotFile

Make sure you replace "/path/to" with the correct path to your OpenFOAM directory. Save and close the file

then execute:

source ~/.bashrc

that got my installation working.
scottneh is offline   Reply With Quote

Old   September 26, 2009, 13:55
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Scott, that is pretty much equivalent to what he is already doing. However, Mahziron, are you using OpenFOAM 1.5 or 1.6? I'm assuming you are entering a wrong path to the OpenFOAM bashrc. A problem might be that you have to extract the archives in $HOME/OpenFOAM/ and NOT $HOME/OpenFOAM/OpenFOAM.1.X/.

You could use the OpenFOAM cookbook script (http://www.cfd-online.com/Forums/ope...-cookbook.html) if you are ok with it redownloading the code.
akidess is offline   Reply With Quote

Old   September 29, 2009, 13:53
Default
  #4
New Member
 
Mahziron
Join Date: Sep 2009
Posts: 5
Rep Power: 17
mahzironrazak is on a distinguished road
thanks scott & akidess

I am using 1.6 version. Anyway, i changed to Ubuntu and managed to install it using the cookbook script link provided by akidess. It took a few hours of compiling though 5 to be exact using my old notebook.
mahzironrazak 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
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
Gentoo Environment Variables scottneh OpenFOAM Installation 1 September 20, 2009 13:21
OpenFOAM environment not configured tweety OpenFOAM Installation 1 December 24, 2008 21:47
mouse operation in the postprocessing environment. xrzoid FLUENT 0 June 5, 2007 22:51
cfd simulation between soild & porous environment Latifimran Jalil Main CFD Forum 0 September 12, 2002 19:42


All times are GMT -4. The time now is 08:51.