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.com] 3.0+ Cannot find commands when installing on RHEL (https://www.cfd-online.com/Forums/openfoam-installation/176276-3-0-cannot-find-commands-when-installing-rhel.html)

Hillie August 14, 2016 21:45

3.0+ Cannot find commands when installing on RHEL
 
Dear Foamers,

I have installed OpenFoam on my university clusters, which is based on red-hat via the wiki instructions: https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL . Just after install everything worked beautifully.

The second time I logged on though I got 'cannot find command' error when I tried to execute OpenFoam. This looked like a standard case of not properly sourcing the '/etc/bashrc' file, but from after checking this it seems to be fine.

The current lines in my bashrc file are
Code:

module load openmpi-x86_64     
source /home/z502/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc

and I source my bashrc file with 'source .bashrc'

Since the above looks good to me and I cannot find any errors, I am not to sure where to start debugging this problem. Does anybody have any idea's?

Hillie August 16, 2016 02:55

I found the problem. Attached is the line I put in my bashrc file which solves the problem:

Code:

source /home/z502/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc WM_LABEL_SIZE=64 foamCompiler=ThirdParty WM_COMPILER=Gcc48 FOAMY_HEX_MESH=yes
]



All times are GMT -4. The time now is 20:55.