|
[Sponsors] |
January 4, 2017, 16:35 |
Something wrong with Allwmake
|
#1 |
New Member
Join Date: Jan 2017
Posts: 6
Rep Power: 9 |
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 cd ${0%/*} || exit 1 # Run from this directory # Parse arguments for library compilation without documentation by default genDoc=0 targetType=libso . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments wmakeCheckPwd "$WM_PROJECT_DIR" || { echo "Allwmake error: Current directory is not \$WM_PROJECT_DIR" echo " The environment variables are inconsistent with the installation." echo " Check the OpenFOAM entries in your dot-files and source them." exit 1 } [ -n "$FOAM_EXT_LIBBIN" ] || { echo "Allwmake error: FOAM_EXT_LIBBIN not set" echo " Check the OpenFOAM entries in your dot-files and source them." exit 1 } # Compile wmake support applications (cd wmake/src && make) # Compile ThirdParty libraries and applications if [ -d "$WM_THIRD_PARTY_DIR" ] then $WM_THIRD_PARTY_DIR/Allwmake else echo "Allwmake: no ThirdParty directory found - skipping" fi # Compile OpenFOAM libraries and applications src/Allwmake $targetType $* # Compile OpenFOAM libraries and applications applications/Allwmake $targetType $* # Optionally build OpenFOAM Doxygen documentation if [ $genDoc -eq 1 ] then doc/Allwmake fi # ----------------------------------------------------------------- end-of-file Code:
# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything [ -z "$PS1" ] && return # don't put duplicate lines in the history. See bash(1) for more options # ... or force ignoredups and ignorespace HISTCONTROL=ignoredups:ignorespace # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color) color_prompt=yes;; esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such # a case would tend to support setf rather than setaf.) color_prompt=yes else color_prompt= fi fi if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ;; *) ;; esac # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). #if [ -f /etc/bash_completion ] && ! shopt -oq posix; then # . /etc/bash_completion #fi alias of230='source $HOME/OpenFOAM/OpenFOAM-3.0.x/etc/bashrc' Last edited by wyldckat; January 7, 2017 at 13:17. Reason: pmjzhai: explanation | moderator: added [CODE] markers |
|
January 5, 2017, 05:39 |
|
#2 |
Senior Member
|
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" || { echo "Allwmake error: Current directory is not \$WM_PROJECT_DIR" echo " The environment variables are inconsistent with the installation." echo " Check the OpenFOAM entries in your dot-files and source them." exit 1 } |
|
January 5, 2017, 05:58 |
|
#3 | |
New Member
Join Date: Jan 2017
Posts: 6
Rep Power: 9 |
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. |
||
January 5, 2017, 06:04 |
|
#4 |
Senior Member
|
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. |
|
January 5, 2017, 06:12 |
|
#5 | |
New Member
Join Date: Jan 2017
Posts: 6
Rep Power: 9 |
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. |
||
January 5, 2017, 06:18 |
|
#6 |
Senior Member
|
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. |
|
January 5, 2017, 06:21 |
|
#7 | |
New Member
Join Date: Jan 2017
Posts: 6
Rep Power: 9 |
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. |
||
January 5, 2017, 06:25 |
|
#8 |
Senior Member
|
Hi,
There are LOTS of manuals online. Which one did you use? |
|
January 5, 2017, 06:28 |
|
#9 |
New Member
Join Date: Jan 2017
Posts: 6
Rep Power: 9 |
||
January 7, 2017, 14:01 |
|
#10 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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:
Since pmjzhai didn't state, I going to have to guess from the pattern that it was either the ones I wrote at openfoamwiki.net or that someone based their description on. I'll have to revise the instructions, increase the font and bolden the line that states that people need to exit root mode. Many thanks for point out these issues! Best regards, Bruno |
|||
January 8, 2017, 05:04 |
|
#11 | ||
Senior Member
|
Hi,
@wyldckat Quote:
Quote:
|
|||
January 8, 2017, 14:54 |
|
#12 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 Last edited by wyldckat; January 8, 2017 at 17:08. Reason: see "edit:" |
||||
April 4, 2017, 21:20 |
/wmake/scripts/AllwmakeParseArguments error OpenFOAM
|
#13 |
New Member
Smrutimaya Pattanaik
Join Date: May 2016
Location: Chennai, India
Posts: 11
Rep Power: 0 |
One has to do the following steps to get rid of the error:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Errors during ThirdParty Allwmake while installing OF-2.4.0 | redbullah | OpenFOAM Installation | 1 | September 1, 2018 18:49 |
allwmake > How to use to install this solvers? | steven123 | OpenFOAM Programming & Development | 1 | July 7, 2014 18:25 |
Wrong oriented faces due to opposite face bends? | Arnoldinho | OpenFOAM | 5 | August 16, 2012 06:00 |
Warning: Dynamic zone with wrong CG using 6DOF | Manoj Kumar | FLUENT | 1 | August 11, 2012 05:03 |
CFX problems with supersonic inlet condition - Inlet values in CFX-Post are wrong | jannnesss | CFX | 5 | February 25, 2011 17:24 |