CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Installation

foamInstallationTest Environment not configured

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

LinkBack Thread Tools Display Modes
Old   September 25, 2009, 10:51
Talking foamInstallationTest Environment not configured
New Member
Join Date: Sep 2009
Posts: 5
Rep Power: 8
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
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

mahzironrazak is offline   Reply With Quote

Old   September 25, 2009, 19:37
Join Date: Sep 2009
Posts: 30
Rep Power: 8
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
[ -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, 12:55
Senior Member
akidess's Avatar
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 924
Rep Power: 17
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 ( if you are ok with it redownloading the code.
akidess is online now   Reply With Quote

Old   September 29, 2009, 12:53
New Member
Join Date: Sep 2009
Posts: 5
Rep Power: 8
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


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
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Gentoo Environment Variables scottneh OpenFOAM Installation 1 September 20, 2009 12: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 21:51
cfd simulation between soild & porous environment Latifimran Jalil Main CFD Forum 0 September 12, 2002 18:42

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