|
[Sponsors] |
[OpenFOAM.org] Current directory is not $WM_PROJECT_DIR |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 20, 2014, 06:36 |
Current directory is not $WM_PROJECT_DIR
|
#1 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
hi formers
i have of2.1.1 but now i want to install of2.3.0 i do all steps in the openFoam.com site but i have this error ./Allwmake: 4: ./Allwmake: wmakeCheckPwd: not found Error: Current directory is not $WM_PROJECT_DIR The environment variables are inconsistent with the installation. Check the OpenFOAM entries in your dot-files and source them. i read the page http://www.cfd-online.com/Forums/ope...oject_dir.html but i canot solve my problem thanks |
|
July 22, 2014, 05:32 |
|
#2 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
no one can help me?
|
|
July 23, 2014, 18:51 |
|
#3 |
Member
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13 |
Check what value is stored in the $WM_PROJECT_DIR.
Code:
echo $WM_PROJECT_DIR Make sure you do not have the line Code:
source $HOME/openfoam211/etc/bashrc If you do, you should change it to Code:
alias foam211='source $HOME/openfoam211/etc/bashrc' Code:
alias foam230='source $HOME/openfoam230/etc/bashrc' Once this is set up, you can run ./Allwmake after sourcing the openfoam230 bashrc. (The above assumes you installed OpenFOAM v2.3.0 in your user $HOME directory.) Hope that helps. |
|
July 24, 2014, 01:39 |
|
#4 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
hi
thanks for your attention when i run echo $WM_PROJECT_DIR i dont have any output in terminal .... just a blank line !!!! like bellow dell@ubuntu:~$ echo $WM_PROJECT_DIR dell@ubuntu:~$ i dont understand your meaning about local bashrc file i have two bashrc file : one in openFoam2.1.1 file and other in openFoam2.3.0 file in these basrc files i change end of it to : alias of230='source $HOME/openfoam230/etc/bashrc' alias of211='source $HOME/openfoam211/etc/bashrc' when i put ./Allwmake in terminal dell@ubuntu:~/OpenFOAM/OpenFOAM-2.3.0$ ./Allwmake i have this output : ./Allwmake: 4: ./Allwmake: wmakeCheckPwd: not found Error: Current directory is not $WM_PROJECT_DIR The environment variables are inconsistent with the installation. Check the OpenFOAM entries in your dot-files and source them. |
|
July 24, 2014, 11:28 |
|
#5 |
Member
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13 |
You need to add
Code:
alias of230='source $HOME/openfoam230/etc/bashrc' alias of211='source $HOME/openfoam211/etc/bashrc' Then, open a new terminal, type of230, and run ./Allwmake in the openfoam230 directory. |
|
July 24, 2014, 14:35 |
|
#6 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
tanks alot
i found that bashrc file |
|
September 1, 2018, 11:02 |
|
#7 |
Member
王莹
Join Date: May 2017
Posts: 51
Rep Power: 9 |
||
September 1, 2018, 15:43 |
|
#8 |
Member
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11 |
I think you have to first check your .bashrc file in your home folder. It is a hidden file so you should enable 'Show hidden files' button if you use window manager. The file named .bashrc must have an ending like @cdm said:
|
|
September 1, 2018, 18:33 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Adding to Emre's answer:
|
|
September 2, 2018, 02:20 |
|
#10 |
Member
王莹
Join Date: May 2017
Posts: 51
Rep Power: 9 |
Thank you Emre, actually I have added the lines to my .bashrc file as cdm suggested.
alias ofdev='source $HOME/OpenFOAM/OpenFOAM-dev/etc/bashrc' alias ofv30='source $HOME/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc' But it still failed. When I typed 'alias' in terminal, it showed two aliases above haven't been defined... When I type 'echo $WM_PROJECT_DIR', my dir is still $HOME/openfoam/openfoam-dev(The version I have installed). There is a strange thing: I have install openfoam-dev in my computer before, but in the ending of my .bashrc files, no "source $HOME/OpenFOAM/OpenFOAM-dev/etc/bashrc" existed at first... |
|
September 2, 2018, 02:38 |
|
#11 | |
Member
王莹
Join Date: May 2017
Posts: 51
Rep Power: 9 |
Thank you Bruno, I have done things as cdm and Emre suggested:
“alias ofdev='source $HOME/OpenFOAM/OpenFOAM-dev/etc/bashrc' alias ofv30='source $HOME/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc'” was added to my ./bashrc file. But it still failed. When I typed 'alias' in terminal, it showed two aliases above haven't been defined...In the link you gave me, I cannot find how to solve this problem. Here is some information I get after I added two aliases in ./bashrc 1.When I type 'echo $WM_PROJECT_DIR', my dir is still $HOME/openfoam/openfoam-dev (The version I have installed). 2.There is a strange thing: I have installed openfoam-dev in my computer before, but at the very beginning, no "source $HOME/OpenFOAM/OpenFOAM-dev/etc/bashrc" existed in the ending of my .bashrc files... Quote:
|
||
September 2, 2018, 10:23 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer:
|
|
September 2, 2018, 10:32 |
|
#13 | |
Member
王莹
Join Date: May 2017
Posts: 51
Rep Power: 9 |
Thanks so much, Bruno! Now I have solved my problem and of v3.0+ is compiling in my book ^_^.
Quote:
|
||
July 10, 2020, 11:30 |
|
#14 | ||
New Member
Join Date: Jul 2020
Posts: 1
Rep Power: 0 |
Quote:
The specific error message is below. Thank you for your help! Quote:
|
|||
July 11, 2020, 03:48 |
|
#15 |
New Member
Tu Can
Join Date: Jul 2017
Location: China
Posts: 16
Rep Power: 9 |
"~" is a syombol refer to "$HOME"
and "$HOME" is home directory of a user. "echo $HOME" will show what it is. mostly, "$HOME" refer to "/home/<your user name>/" specially, when user name is "root", "$HOME" refer to "/root/" seems like you are using "sudo" or login as root. It's not recommend. |
|
August 25, 2020, 04:42 |
|
#16 |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
What does WM mean in the beginning of WM_PROJECT_DIR at all? Is it abbreviation for wmake?
|
|
September 6, 2020, 04:10 |
3.2.2.5 wmake environment variables
|
#17 |
Member
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8 |
Yes, More information is available at
https://cfd.direct/openfoam/user-gui...x10-730003.2.2 3.2.2.5 wmake environment variables |
|
September 6, 2020, 09:19 |
|
#18 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Installation Problem with OF 6 version | Aurel | OpenFOAM Community Contributions | 14 | November 18, 2020 17:18 |
Ansys Licence Serve on Ubuntu 16.04 LTS | david.pasquale | ANSYS | 2 | January 20, 2017 12:52 |
Error: Current directory is not $WM_THIRD_PARTY_DIR | lapsednun | OpenFOAM Installation | 1 | August 30, 2014 11:46 |
Re : Problem Installing OpenFOAM on Centos -5.3 | mohanphy | OpenFOAM Installation | 1 | February 7, 2010 20:09 |
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' | mfiandor | OpenFOAM Installation | 2 | January 25, 2010 10:50 |