Something wrong with Allwmake
hi all,
Would you please help me correct the openfoam installation. I input ./Allwmake in the command line, but received an error shown below. Code:
./Allwmake:7:.:Can't open /wmake/scripts/AllwmakeParseArguments 1 Code:
#!/bin/sh Code:
# ~/.bashrc: executed by bash(1) for non-login shells. |
Hi,
In fact something wrong is with environment, not with Allwmake. Line 7 is Code:
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments I do not know why there is a check like this Code:
wmakeCheckPwd "$WM_PROJECT_DIR" || { |
Quote:
Thanks for your reply. Firstly, I input 'source etc/bashrc' in the shell, but not got the error below. -bash: /root/OpenFOAM/OpenFOAM-3.0.x/bin/foamEtcFile: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/bin/foamCleanPath: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/bin/foamCleanPath: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/bin/foamCleanPath: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/etc/config/settings.sh: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/etc/config/aliases.sh: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/bin/foamEtcFile: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/bin/foamEtcFile: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/bin/foamEtcFile: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/bin/foamCleanPath: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/bin/foamCleanPath: No such file or directory -bash: /root/OpenFOAM/OpenFOAM-3.0.x/bin/foamCleanPath: No such file or directory Would you please tell me what's wrong with it? Secondly, I dont know the check either since I downloaded from github directly. Many thanks for your reply. |
Well, second part of the answer was of rant type. I think 50% of questions here raise due to environment not being correctly set up and I do not know why foundation still did not implement environment setup checks in their Allwmake/Allrun scripts.
Could you describe how do you install OpenFOAM? It seems that you have downloaded it under non-privileged user and now are trying to compile it using root account. |
Quote:
I installed a ubuntu virtual machine firstly. Then I git clone https:.... to download the two firectories 'OpenFOAM-3.0.x' and 'ThirdParty-3.0.x'. Now the problem occurs after I change directory to OpenFOAM-3.0.x and input ./Allwmake in the shell. I download it using root with inputing sudo -i and password before downloading. |
Hi,
1. Where did you clone sources? They do not seem to be in /root/OpenFOAM/OpenFOAM-3.0.x. 2. Why do you need root for installation? It is your virtual machine, so I guess, only you will use the installation. |
Quote:
I used a manual from online and do all command step by step. Finally I got the error. What do you suggest me to do to solve the problem. Thanks so much. |
Hi,
There are LOTS of manuals online. Which one did you use? |
Quote:
Thanks for your remind. I tried without root and it's working. Cheers |
Greetings to all!
@alexeym: Quote:
This bug was inherited from a proposition I did a few years ago... in 2011: https://bugs.openfoam.org/view.php?id=256 - it was integrated with a lot of modifications in December 2014 and I didn't even notice that bug since then. I'll submit a patch request as soon as possible. Quote:
Quote:
Many thanks for point out these issues! Best regards, Bruno |
Hi,
@wyldckat Quote:
Quote:
|
Hi Alexey,
Quote:
And I ended up not sending a patch yet, because I got hung up on which was the best error information to provide... Quote:
The most likely acceptable solution would be a one/two-liner that checks the main variable and complains if the environment is not active/sourced/set, i.e. something that doesn't overshadow the real purpose of the Allrun scripts. Quote:
Best regards, Bruno edit: Report for the issue in Allwmake is now here: https://bugs.openfoam.org/view.php?id=2424 |
/wmake/scripts/AllwmakeParseArguments error OpenFOAM
One has to do the following steps to get rid of the error:
|
All times are GMT -4. The time now is 04:59. |