CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Error: Current directory is not $WM_THIRD_PARTY_DIR (https://www.cfd-online.com/Forums/openfoam-installation/141010-error-current-directory-not-wm_third_party_dir.html)

lapsednun August 28, 2014 05:00

Error: Current directory is not $WM_THIRD_PARTY_DIR
 
1 Attachment(s)
Hello. Getting V. frustrated! Assume that my environment variables must be at fault but can't see what the issue is however several hours of head banging later.... :mad:

I'm a bit of a newbie at this so it's probably blindingly obvious what's wrong to those of you who know what you're doing!

So. I'm attempting to compile into /opt/OpenFOAM/OpenFOAM-2.3.0 On an Ubuntu 14.04 VM. When I run ./Allwmake from the ThirdParty-2.3.0 folder I get the error:
Code:

./Allwmake: 34: ./Allwmake: wmakeCheckPwd: not found
Error: Current directory is not $WM_THIRD_PARTY_DIR
    The environment variables are inconsistent with the installation.
    Check the OpenFOAM entries in your dot-files and source them.

I currently have set:

Code:

root@swilley-w7:/opt/OpenFOAM/OpenFOAM-2.3.0/ThirdParty-2.3.0# echo $WM_THIRD_PARTY_DIR
/opt/OpenFOAM/ThirdParty-2.3.x

root@swilley-w7:/opt/OpenFOAM/OpenFOAM-2.3.0/ThirdParty-2.3.0# echo $FOAM_INST_DIR
/opt/OpenFOAM

root@swilley-w7:/opt/OpenFOAM/OpenFOAM-2.3.0/ThirdParty-2.3.0# echo $WM_PROJECT_DIR
/opt/OpenFOAM/OpenFOAM-2.3.x

bashrc file is attached.

Any help/suggestions much appreciated!

thanks

Steve

wyldckat August 30, 2014 10:46

Greetings Steve and welcome to the forum!

The problem seems to be that you have more than one OpenFOAM version already installed, most likely version 2.3.x, which is why the environment variables for the other version are colliding with 2.3.0.

Here is some reading material on this topic: http://openfoamwiki.net/index.php/In...with_the_Shell

Best regards,
Bruno


All times are GMT -4. The time now is 15:07.