CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFoam installation environment error (using CAELinux) (https://www.cfd-online.com/Forums/openfoam-installation/94654-openfoam-installation-environment-error-using-caelinux.html)

vahid_paris November 22, 2011 05:04

OpenFoam installation environment error (using CAELinux)
 
Hello,

I have a problem during the openfoam installation.
I have CAElinux package containing linux ubuntu as well as openfoam.
Actually, I put the CAElinux pack in "opt" directory. I compilied the software with ./Allwmake commande, but after checking the installation with "foamInstallationtest" command, I saw the following error:

"OpenFoam environment not configured."

I used the following command to set the environment:

export FOAM_INST_DIR=/home/simuser
foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.0.1/etc/bashrc
[ -f $foamDotFile ] && . $foamDotFile

I also added the following line in .bashrc file:

source /opt/openfoam201/etc/bashrc

but, still, I have the same problem. Any idea about this error?
Thanks

wyldckat November 22, 2011 15:11

Greetings Vahid,

Quote:

Originally Posted by vahid_paris (Post 333051)
export FOAM_INST_DIR=/home/simuser
foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.0.1/etc/bashrc
[ -f $foamDotFile ] && . $foamDotFile

So you are telling ".bashrc" that OpenFOAM is parked in your home folder... And then also tell it that you parked in opt as well?
Quote:

Originally Posted by vahid_paris (Post 333051)
I also added the following line in .bashrc file:
source /opt/openfoam201/etc/bashrc

What were exactly the steps you've taken to install OpenFOAM 2.0.1 at "/opt"?

As far as I can tell, you first installed OpenFOAM as root to place it at "/opt". If so, how exactly did you call OpenFOAM's "bashrc" file while in root mode?

Best regards,
Bruno


All times are GMT -4. The time now is 06:59.