|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 2.3.1 installation on SUSE Linux Enterprise 12 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 8, 2015, 09:16 |
OpenFOAM 2.3.1 installation on SUSE Linux Enterprise 12
|
#1 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
Hello friends,
I have work station hpz840 on which I have installed SUSE enterprise 12. I want to install OpenFOAM 2.3.1 on it . I tried to follow the same procedure that given on the web site but I am not able to install it can you help me asap Regards Harshawardhan |
|
May 10, 2015, 16:22 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: I'm not familiar with SuSE 12, therefore I don't know with which openSUSE it looks like to the most. Nonetheless, try the instructions given here: http://openfoamwiki.net/index.php/In...2.3.1/openSUSE
|
|
May 11, 2015, 03:13 |
|
#3 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
Dear sir,
I tried " boost-devel gmp-devel mpfr-devel libQtWebKit-devel" This command It is showing error- boost-devel command not found and latter "source /etc/profile.d/mpi-selector.sh" after entering this command it is showing etc/profile.d/mpi-selector.sh no such file or direcitory |
|
May 17, 2015, 09:14 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Harshawardhan,
I was intrigued by how SUSE was configured and I downloaded the 60 day trial versions they have of SLED and SLES. You can find the installation instructions of OpenFOAM 2.3.1 for each specific variant of SUSE Linux Enterprise 12 here: http://openfoamwiki.net/index.php/In...nux_Enterprise Best regards, Bruno Last edited by wyldckat; May 17, 2015 at 09:15. Reason: "of OpenFOAM 2.3.1" |
|
October 26, 2015, 11:00 |
|
#5 |
Senior Member
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17 |
Hi Wyldckat,
I have a "strange" problem with SLED12 and OpenFoam...basically I am not able to install because there is something wrong in the environment variables. I've download and unpacked the source archives, created the alias in my /home/username/.bashrc and if I source the OF bashrc file using my alias I have nothing as output in the bash shell (as expected...nothing should appear here). However, I've noticed that "foam" command is not available after sourcing the OF bashrc, and this tells me that something is wrong... Code:
andrea@PWT-linux:~> alias ... alias of24='source /opt/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc' ... andrea@PWT-linux:~> of24 andrea@PWT-linux:~> foam bash: foam: command not found Code:
andrea@PWT-linux:~> echo $WM_PROJECT_DIR /opt/OpenFOAM/OpenFOAM-2.4.0 andrea@PWT-linux:~> cd $WM_PROJECT_DIR andrea@PWT-linux:/opt/OpenFOAM/OpenFOAM-2.4.0> ./Allwmake ./Allwmake: line 4: wmakeCheckPwd: command 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. Do you have any idea on how to solve this issue, please? Best regards, Andrea Last edited by Blanco; October 26, 2015 at 12:28. |
|
October 31, 2015, 08:23 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Andrea,
You need to edit the file "/opt/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc" and change the installation path in this block of code: Code:
################################################################################ # USER EDITABLE PART: Changes made here may be lost with the next upgrade # # either set $FOAM_INST_DIR before sourcing this file or set # 'foamInstall' below to where OpenFOAM is installed # # Location of the OpenFOAM installation # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foamInstall=$HOME/$WM_PROJECT # foamInstall=~$WM_PROJECT # foamInstall=/opt/$WM_PROJECT # foamInstall=/usr/local/$WM_PROJECT # # END OF (NORMAL) USER EDITABLE PART ################################################################################ Best regards, Bruno
__________________
|
|
November 2, 2015, 03:42 |
|
#7 |
Senior Member
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17 |
Hello Bruno,
thanks for your answer. Unfortunately I already modified the bashrc in the OF package, because I know that's the file where the foamInstall is defined, and I get the error. I've tried to install also to $HOME/$WM_PROJECT_DIR (so without modifing the bashrc) but it doesn't work also in that case. The problem is that OF aliases are not available after sourcing the OF bashrc, even if other variables defined inside the same bashrc are corretly updated (i.e. $WM_PROJECT_DIR). This means to me that something goes wrong during the source of OF bashrc, even if I don't have any output from the source... BTW, I've tried also to do Code:
export FOAM_INST_DIR=/opt/OpenFOAM foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.4.0/etc/bashrc [ -f $foamDotFile ] && . $foamDotFile Do you have any idea? Am I missing something related to the term environment (I'm using a gnome term)? Best regards, Andrea |
|
November 2, 2015, 11:52 |
|
#8 |
Senior Member
|
Hi,
Could you post a little bit more about how you installed OpenFOAM? I have tried openSUSE 12.3 and OpenFOAM 2.4.0 in /opt/openfoam/OpenFOAM-2.4.0. And everything is works as expected (it is even possible to install OpenFOAM into /opt/openfoam/2.4.0 after modification of foamEtcFile script). You can try do set FOAM_VERBOSE environment variable to debug 'source /etc/bashrc' execution. |
|
November 2, 2015, 17:59 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I believe that I incorrectly diagnosed the other error message, namely this one: Quote:
Code:
ls -lZ $WM_PROJECT_DIR/wmake
Best regards, Bruno |
||
November 3, 2015, 07:18 |
|
#10 |
Senior Member
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17 |
Hi Bruno and Alexey,
thanks for your suggestions, I've tried both of them. I've downloaded OF and Thirdparty from the official sourcepack webpage, as long as original files are concerned. Code:
export FOAM_VERBOSE=1 andrea@...:~> source OpenFOAM/OpenFOAM-2.4.0/etc/bashrc Sourcing: /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/settings.sh Sourcing: /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/aliases.sh Sourcing: /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/paraview.sh Sourcing: /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/ensight.sh Sourcing: /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/gperftools.sh Sourcing: /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/CGAL.sh Code:
andrea@...:~> ls -lZ $WM_PROJECT_DIR/wmake total 108 -rw-r--r-- 1 andrea users ? 7226 May 22 11:50 Makefile -rw-r--r-- 1 andrea users ? 1519 May 22 11:50 MakefileApps -rw-r--r-- 1 andrea users ? 2671 May 22 11:50 MakefileFiles -rw-r--r-- 1 andrea users ? 2227 May 22 11:50 MakefileOptions -rwxr-xr-x 1 andrea users ? 1886 May 22 11:50 makeWmake drwxr-xr-x 31 andrea users ? 4096 May 22 11:50 rules drwxr-xr-x 2 andrea users ? 114 May 22 11:50 scripts drwxr-xr-x 2 andrea users ? 4096 May 22 11:50 src -rwxr-xr-x 1 andrea users ? 4511 May 22 11:50 wclean -rwxr-xr-x 1 andrea users ? 2469 May 22 11:50 wcleanAll -rwxr-xr-x 1 andrea users ? 1831 May 22 11:50 wcleanLnIncludeAll -rwxr-xr-x 1 andrea users ? 2952 May 22 11:50 wcleanMachine -rwxr-xr-x 1 andrea users ? 8901 May 22 11:50 wmake -rwxr-xr-x 1 andrea users ? 2664 May 22 11:50 wmakeCheckPwd -rwxr-xr-x 1 andrea users ? 2549 May 22 11:50 wmakeFilesAndOptions -rwxr-xr-x 1 andrea users ? 2568 May 22 11:50 wmakeFindEmptyMake -rwxr-xr-x 1 andrea users ? 4036 May 22 11:50 wmakeLnInclude -rwxr-xr-x 1 andrea users ? 2856 May 22 11:50 wmakeLnIncludeAll -rwxr-xr-x 1 andrea users ? 5725 May 22 11:50 wmakePrintBuild -rwxr-xr-x 1 andrea users ? 6608 May 22 11:50 wmakeScheduler -rwxr-xr-x 1 andrea users ? 6846 May 22 11:50 wmakeSchedulerUptime Do you have any other idea? BTW, I have moved from SLED12 to SLES11, but the problem is the same I've succesfully compiled on OpenSUSE too, on my laptop. Best regards, Andrea |
|
November 7, 2015, 13:09 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@Andrea - A few quick questions:
|
|
November 9, 2015, 03:42 |
|
#12 |
Senior Member
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17 |
Hi Bruno,
thanks for your effort about this issue. If I try the first command I get Code:
andrea@...:~/OpenFOAM/OpenFOAM-2.4.0/etc> ls -lZ $WM_PROJECT_DIR total 68 -rwxr-xr-x 1 andrea users ? 932 May 22 11:50 Allwmake drwxr-xr-x 5 andrea users ? 62 May 22 11:50 applications drwxr-xr-x 3 andrea users ? 4096 May 22 11:50 bin -rw-r--r-- 1 andrea users ? 35647 May 22 11:50 COPYING drwxr-xr-x 6 andrea users ? 112 May 22 11:50 doc drwxr-xr-x 7 andrea users ? 148 Nov 3 12:11 etc -rw-r--r-- 1 andrea users ? 7656 May 22 11:50 README.html -rw-r--r-- 1 andrea users ? 1471 May 22 11:50 README.org drwxr-xr-x 37 andrea users ? 4096 May 22 11:50 src drwxr-xr-x 16 andrea users ? 4096 May 22 11:50 tutorials drwxr-xr-x 5 andrea users ? 4096 May 22 11:50 wmake Coming to the shell type I'm using bash: Code:
andrea@...:~/OpenFOAM/OpenFOAM-2.4.0/etc>ls -l $(which sh) $(which bash) -rwxr-xr-x 1 root root 588144 May 19 07:23 /bin/bash lrwxrwxrwx 1 root root 9 Oct 27 16:07 /usr/bin/sh -> /bin/bash andrea@...:~/OpenFOAM/OpenFOAM-2.4.0/etc>bash --version GNU bash, version 3.2.57(1)-release (x86_64-suse-linux-gnu) Copyright (C) 2007 Free Software Foundation, Inc. Code:
andrea@...:~/OpenFOAM/OpenFOAM-2.4.0/etc> ulimit -a core file size (blocks, -c) 1 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 255952 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) 27857728 open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 255952 virtual memory (kbytes, -v) 28313760 file locks (-x) unlimited Thanks, Best regards, Andrea |
|
November 13, 2015, 08:45 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Andrea,
Something is wrong there. The unlimit values all look OK to me, but the bash version is what I'm concerned about. I booted up the VM that I have with SLED 12 and I got this version: Code:
# bash --version GNU bash, version 4.2.47(1)-release (x86_64-suse-linux-gnu) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Code:
cat /etc/SuSE-release cat /etc/os-release Code:
SUSE Linux Enterprise Desktop 12 (x86_64) VERSION = 12 PATCHLEVEL = 0 # This file is deprecated and will be removed in a future service pack or release. # Please check /etc/os-release for details about this release. NAME="SLED" VERSION="12" VERSION_ID="12" PRETTY_NAME="SUSE Linux Enterprise Desktop 12" ID="sled" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:suse:sled:12" Therefore, sorting out how that older bash version got installed in the first place, would probably help in solving this problem. Best regards, Bruno
__________________
|
|
November 13, 2015, 09:59 |
|
#14 |
Senior Member
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17 |
Hi Bruno,
thanks for the reply. Yes I'm using an older bash because in the meantime I have switched to SLES 11 SP4 (-2 posts), which comes with bash 3.2.57(1) from the official Suse repo. So if this is the problem then I have to try to update bash and see if it solve the issue...very strange, never had to manually update bash before. I'll let you know. Best regards, Andrea |
|
November 13, 2015, 10:48 |
|
#15 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Andrea,
Quote:
Quote:
Mmm... the request I should have already made is what does the command export give you? Preferably, the output before sourcing OpenFOAM's shell environment and then the output afterwards. The other diagnosis requires a complete dump of what the source command does. This can be done with the following commands (please adapt to your path): Code:
set -x source /opt/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc > log.source 2>&1 set +x Best regards, Bruno |
|||
November 13, 2015, 11:08 |
|
#16 |
Senior Member
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17 |
Hi Bruno,
ok, the export command before source OF bashrc gives: Code:
declare -x ALSA_CONFIG_PATH="/etc/alsa-pulse.conf" declare -x COLORTERM="gnome-terminal" declare -x CPU="x86_64" declare -x CSHEDIT="emacs" declare -x CVS_RSH="ssh" declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-Zd0j34EQdL,guid=b7a0e3ea125103d21fd592b05644c66f" declare -x DESKTOP_SESSION="gnome" declare -x DISPLAY=":0.0" declare -x ENV="/etc/bash.bashrc" declare -x FROM_HEADER="" declare -x GDMSESSION="gnome" declare -x GDM_KEYBOARD_LAYOUT="it" declare -x GDM_LANG="en_US.UTF-8" declare -x GNOME_DESKTOP_SESSION_ID="this-is-deprecated" declare -x GNOME_KEYRING_SOCKET="/tmp/keyring-qCRzlO/socket" declare -x GTK_IM_MODULE="cedilla" declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/andrea/.gtkrc-1.2-gnome2" declare -x G_BROKEN_FILENAMES="1" declare -x G_FILENAME_ENCODING="@locale,UTF-8,ISO-8859-15,CP1252" declare -x HISTSIZE="1000" declare -x HOME="/home/andrea" declare -x HOSTTYPE="x86_64" declare -x ICEAUTHORITY="/home/andrea/.ICEauthority" declare -x INFODIR="/usr/local/info:/usr/share/info:/usr/info" declare -x INFOPATH="/usr/local/info:/usr/share/info:/usr/info" declare -x INPUTRC="/home/andrea/.inputrc" declare -x LANG="en_US.UTF-8" declare -x LD_LIBRARY_PATH="/usr/lib64/mpi/gcc/openmpi/lib64" declare -x LESS="-M -I" declare -x LESSCLOSE="lessclose.sh %s %s" declare -x LESSKEY="/etc/lesskey.bin" declare -x LESSOPEN="lessopen.sh %s" declare -x LESS_ADVANCED_PREPROCESSOR="no" declare -x LOGNAME="andrea" declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:" declare -x LS_OPTIONS="-N --color=tty -T 0" declare -x MACHTYPE="x86_64-suse-linux" declare -x MAIL="/var/spool/mail/andrea" declare -x MANPATH="/usr/lib64/mpi/gcc/openmpi/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man" declare -x MINICOM="-c on" declare -x MORE="-sl" declare -x NNTPSERVER="news" declare -x OLDPWD declare -x ORBIT_SOCKETDIR="/tmp/orbit-andrea" declare -x OSTYPE="linux" declare -x PAGER="less" declare -x PATH="/opt/GTI/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/andrea/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin" declare -x PROFILEREAD="true" declare -x PWD="/home/andrea" declare -x PYTHONSTARTUP="/etc/pythonstart" declare -x QT_IM_MODULE="xim" declare -x QT_IM_SWITCHER="imsw-multi" declare -x QT_SYSTEM_DIR="/usr/share/desktop-data" declare -x SDL_AUDIODRIVER="pulse" declare -x SESSION_MANAGER="local/localhost:@/tmp/.ICE-unix/97186,unix/localhost:/tmp/.ICE-unix/97186" declare -x SHELL="/bin/bash" declare -x SHLVL="1" declare -x SSH_AGENT_PID="97272" declare -x SSH_ASKPASS="/usr/lib64/ssh/x11-ssh-askpass" declare -x SSH_AUTH_SOCK="/tmp/keyring-qCRzlO/socket.ssh" declare -x TERM="xterm" declare -x TMPDIR="/tmp" declare -x USER="andrea" declare -x USERNAME="andrea" declare -x WINDOWID="56700507" declare -x WINDOWMANAGER="/usr/bin/gnome" declare -x XAUTHLOCALHOSTNAME="localhost" declare -x XAUTHORITY="/var/run/gdm/auth-for-andrea-U5Tkjg/database" declare -x XCURSOR_THEME="DMZ" declare -x XDG_CONFIG_DIRS="/etc/xdg" declare -x XDG_DATA_DIRS="/usr/share:/etc/opt/kde3/share:/opt/kde3/share" declare -x XDG_SESSION_COOKIE="df753287311c93eee2650534562f93e2-1447347822.974326-750653879" declare -x XKEYSYMDB="/usr/share/X11/XKeysymDB" declare -x XMODIFIERS="@im=local" declare -x XNLSPATH="/usr/share/X11/nls" declare -x XSESSION_IS_UP="yes" Code:
declare -x ALSA_CONFIG_PATH="/etc/alsa-pulse.conf" declare -x COLORTERM="gnome-terminal" declare -x CPU="x86_64" declare -x CSHEDIT="emacs" declare -x CVS_RSH="ssh" declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-Zd0j34EQdL,guid=b7a0e3ea125103d21fd592b05644c66f" declare -x DESKTOP_SESSION="gnome" declare -x DISPLAY=":0.0" declare -x ENV="/etc/bash.bashrc" declare -x FOAM_INST_DIR="/home/andrea/OpenFOAM" declare -x FOAM_SETTINGS="" declare -x FOAM_SIGFPE="" declare -x FROM_HEADER="" declare -x GDMSESSION="gnome" declare -x GDM_KEYBOARD_LAYOUT="it" declare -x GDM_LANG="en_US.UTF-8" declare -x GNOME_DESKTOP_SESSION_ID="this-is-deprecated" declare -x GNOME_KEYRING_SOCKET="/tmp/keyring-qCRzlO/socket" declare -x GTK_IM_MODULE="cedilla" declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/andrea/.gtkrc-1.2-gnome2" declare -x G_BROKEN_FILENAMES="1" declare -x G_FILENAME_ENCODING="@locale,UTF-8,ISO-8859-15,CP1252" declare -x HISTSIZE="1000" declare -x HOME="/home/andrea" declare -x HOSTTYPE="x86_64" declare -x ICEAUTHORITY="/home/andrea/.ICEauthority" declare -x INFODIR="/usr/local/info:/usr/share/info:/usr/info" declare -x INFOPATH="/usr/local/info:/usr/share/info:/usr/info" declare -x INPUTRC="/home/andrea/.inputrc" declare -x LANG="en_US.UTF-8" declare -x LD_LIBRARY_PATH="/usr/lib64/mpi/gcc/openmpi/lib64" declare -x LESS="-M -I" declare -x LESSCLOSE="lessclose.sh %s %s" declare -x LESSKEY="/etc/lesskey.bin" declare -x LESSOPEN="lessopen.sh %s" declare -x LESS_ADVANCED_PREPROCESSOR="no" declare -x LOGNAME="andrea" declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:" declare -x LS_OPTIONS="-N --color=tty -T 0" declare -x MACHTYPE="x86_64-suse-linux" declare -x MAIL="/var/spool/mail/andrea" declare -x MANPATH="/usr/lib64/mpi/gcc/openmpi/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man:" declare -x MINICOM="-c on" declare -x MORE="-sl" declare -x NNTPSERVER="news" declare -x OLDPWD="/home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc" declare -x ORBIT_SOCKETDIR="/tmp/orbit-andrea" declare -x OSTYPE="linux" declare -x PAGER="less" declare -x PATH="/opt/GTI/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/andrea/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin" declare -x PROFILEREAD="true" declare -x PWD="/home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc" declare -x PYTHONSTARTUP="/etc/pythonstart" declare -x QT_IM_MODULE="xim" declare -x QT_IM_SWITCHER="imsw-multi" declare -x QT_SYSTEM_DIR="/usr/share/desktop-data" declare -x SDL_AUDIODRIVER="pulse" declare -x SESSION_MANAGER="local/localhost:@/tmp/.ICE-unix/97186,unix/localhost:/tmp/.ICE-unix/97186" declare -x SHELL="/bin/bash" declare -x SHLVL="1" declare -x SSH_AGENT_PID="97272" declare -x SSH_ASKPASS="/usr/lib64/ssh/x11-ssh-askpass" declare -x SSH_AUTH_SOCK="/tmp/keyring-qCRzlO/socket.ssh" declare -x TERM="xterm" declare -x TMPDIR="/tmp" declare -x USER="andrea" declare -x USERNAME="andrea" declare -x WINDOWID="56700507" declare -x WINDOWMANAGER="/usr/bin/gnome" declare -x WM_ARCH_OPTION="64" declare -x WM_COMPILER="Gcc" declare -x WM_COMPILE_OPTION="Opt" declare -x WM_MPLIB="SYSTEMOPENMPI" declare -x WM_OSTYPE="POSIX" declare -x WM_PRECISION_OPTION="DP" declare -x WM_PROJECT="OpenFOAM" declare -x WM_PROJECT_DIR="/home/andrea/OpenFOAM/OpenFOAM-2.4.0" declare -x WM_PROJECT_INST_DIR="/home/andrea/OpenFOAM" declare -x WM_PROJECT_USER_DIR="/home/andrea/OpenFOAM/andrea-2.4.0" declare -x WM_PROJECT_VERSION="2.4.0" declare -x WM_THIRD_PARTY_DIR="/home/andrea/OpenFOAM/ThirdParty-2.4.0" declare -x XAUTHLOCALHOSTNAME="localhost" declare -x XAUTHORITY="/var/run/gdm/auth-for-andrea-U5Tkjg/database" declare -x XCURSOR_THEME="DMZ" declare -x XDG_CONFIG_DIRS="/etc/xdg" declare -x XDG_DATA_DIRS="/usr/share:/etc/opt/kde3/share:/opt/kde3/share" declare -x XDG_SESSION_COOKIE="df753287311c93eee2650534562f93e2-1447347822.974326-750653879" declare -x XKEYSYMDB="/usr/share/X11/XKeysymDB" declare -x XMODIFIERS="@im=local" declare -x XNLSPATH="/usr/share/X11/nls" declare -x XSESSION_IS_UP="yes" Code:
++ export WM_PROJECT=OpenFOAM ++ WM_PROJECT=OpenFOAM ++ export WM_PROJECT_VERSION=2.4.0 ++ WM_PROJECT_VERSION=2.4.0 ++ foamInstall=/home/andrea/OpenFOAM ++ : /home/andrea/OpenFOAM ++ export FOAM_INST_DIR ++ foamCompiler=system ++ export WM_COMPILER=Gcc ++ WM_COMPILER=Gcc ++ unset WM_COMPILER_ARCH WM_COMPILER_LIB_ARCH ++ export WM_ARCH_OPTION=64 ++ WM_ARCH_OPTION=64 ++ export WM_PRECISION_OPTION=DP ++ WM_PRECISION_OPTION=DP ++ export WM_COMPILE_OPTION=Opt ++ WM_COMPILE_OPTION=Opt ++ export WM_MPLIB=SYSTEMOPENMPI ++ WM_MPLIB=SYSTEMOPENMPI ++ export WM_OSTYPE=POSIX ++ WM_OSTYPE=POSIX ++ export FOAM_SIGFPE= ++ FOAM_SIGFPE= ++ foamOldDirs='/home/andrea/OpenFOAM /home/andrea/OpenFOAM/andrea' ++ '[' '' '!=' /home/andrea/OpenFOAM ']' ++ foamOldDirs=' /home/andrea/OpenFOAM /home/andrea/OpenFOAM/andrea' ++ export WM_PROJECT_INST_DIR=/home/andrea/OpenFOAM ++ WM_PROJECT_INST_DIR=/home/andrea/OpenFOAM ++ export WM_PROJECT_DIR=/home/andrea/OpenFOAM/OpenFOAM-2.4.0 ++ WM_PROJECT_DIR=/home/andrea/OpenFOAM/OpenFOAM-2.4.0 ++ export WM_THIRD_PARTY_DIR=/home/andrea/OpenFOAM/ThirdParty-2.4.0 ++ WM_THIRD_PARTY_DIR=/home/andrea/OpenFOAM/ThirdParty-2.4.0 ++ '[' -d '' ']' ++ unset WM_PROJECT_SITE ++ export WM_PROJECT_USER_DIR=/home/andrea/OpenFOAM/andrea-2.4.0 ++ WM_PROJECT_USER_DIR=/home/andrea/OpenFOAM/andrea-2.4.0 +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamEtcFile prefs.sh ++ _foamSource ++ '[' 0 -ge 1 ']' ++ export FOAM_SETTINGS= ++ FOAM_SETTINGS= ++ _foamEval ++ '[' 0 -gt 0 ']' ++ foamClean=/home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamCleanPath +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamCleanPath /opt/GTI/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/andrea/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin ' /home/andrea/OpenFOAM /home/andrea/OpenFOAM/andrea' ++ cleaned=/opt/GTI/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/andrea/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin ++ PATH=/opt/GTI/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/andrea/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamCleanPath /usr/lib64/mpi/gcc/openmpi/lib64 ' /home/andrea/OpenFOAM /home/andrea/OpenFOAM/andrea' ++ cleaned=/usr/lib64/mpi/gcc/openmpi/lib64 ++ LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib64 +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamCleanPath /usr/lib64/mpi/gcc/openmpi/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man ' /home/andrea/OpenFOAM /home/andrea/OpenFOAM/andrea' ++ cleaned=/usr/lib64/mpi/gcc/openmpi/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man ++ MANPATH=/usr/lib64/mpi/gcc/openmpi/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man ++ export PATH LD_LIBRARY_PATH MANPATH ++ _foamSource /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/settings.sh ++ '[' 1 -ge 1 ']' ++ '[' '' -a '$(ppwd \l)\u@\h:\w> ' ']' ++ cd . /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/settings.sh ++ shift ++ '[' 0 -ge 1 ']' ++ _foamSource /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/aliases.sh ++ '[' 1 -ge 1 ']' ++ '[' '' -a '$(ppwd \l)\u@\h:\w> ' ']' ++ cd . /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/aliases.sh ++ shift ++ '[' 0 -ge 1 ']' +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamEtcFile config/paraview.sh ++ _foamSource /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/paraview.sh ++ '[' 1 -ge 1 ']' ++ '[' '' -a '$(ppwd \l)\u@\h:\w> ' ']' ++ cd . /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/paraview.sh ++ shift ++ '[' 0 -ge 1 ']' +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamEtcFile config/ensight.sh ++ _foamSource /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/ensight.sh ++ '[' 1 -ge 1 ']' ++ '[' '' -a '$(ppwd \l)\u@\h:\w> ' ']' ++ cd . /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/ensight.sh ++ shift ++ '[' 0 -ge 1 ']' +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamEtcFile config/gperftools.sh ++ _foamSource /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/gperftools.sh ++ '[' 1 -ge 1 ']' ++ '[' '' -a '$(ppwd \l)\u@\h:\w> ' ']' ++ cd . /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/gperftools.sh ++ shift ++ '[' 0 -ge 1 ']' +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamEtcFile config/CGAL.sh ++ _foamSource /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/CGAL.sh ++ '[' 1 -ge 1 ']' ++ '[' '' -a '$(ppwd \l)\u@\h:\w> ' ']' ++ cd . /home/andrea/OpenFOAM/OpenFOAM-2.4.0/etc/config/CGAL.sh ++ shift ++ '[' 0 -ge 1 ']' +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamCleanPath /opt/GTI/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/andrea/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin ++ cleaned=/opt/GTI/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/andrea/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin ++ PATH=/opt/GTI/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/andrea/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamCleanPath /usr/lib64/mpi/gcc/openmpi/lib64 ++ cleaned=/usr/lib64/mpi/gcc/openmpi/lib64 ++ LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib64 +++ /home/andrea/OpenFOAM/OpenFOAM-2.4.0/bin/foamCleanPath /usr/lib64/mpi/gcc/openmpi/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man ++ cleaned=/usr/lib64/mpi/gcc/openmpi/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man: ++ MANPATH=/usr/lib64/mpi/gcc/openmpi/share/man:/usr/local/man:/usr/local/share/man:/usr/share/man: ++ export PATH LD_LIBRARY_PATH MANPATH ++ '[' -n '' ']' ++ unset cleaned foamClean foamInstall foamOldDirs ++ unset _foamSource _foamEval Code:
GNU bash, version 4.3.30(1)-release (x86_64-unknown-linux-gnu) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Andrea |
|
November 13, 2015, 15:16 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Andrea,
I believe I have solved the mystery and the reason why no bash version could possibly ever save us from this issue... unless the command alias simply wasn't supported in that particular version. The tell-tale signs are as follows:
edit: Sorry, forgot to mention the other solution: Edit the file "etc/bashrc" in OpenFOAM and look for this block of code: Code:
# Source files, possibly with some verbosity _foamSource() { while [ $# -ge 1 ] do [ "$FOAM_VERBOSE" -a "$PS1" ] && echo "Sourcing: $1" 1>&2 . $1 shift done } Code:
. $1 Code:
\. $1 Bruno Last edited by wyldckat; November 13, 2015 at 15:43. Reason: see "edit:" |
|
November 16, 2015, 04:06 |
|
#18 |
Senior Member
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17 |
Bruno, you're definetely a master!
You have solved my problem, the "." alias was the source of it...OF it's now compiling properly. I have deleted that alias in order to restore the original source definition in bash. Thanks again a lot for your support and for the effort you put into this topic. If you'll ever come to Italy in Turin, I'll treat you to a beer! Best regards, Andrea |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
[OpenFOAM.com] OpenFOAM 1.7.1 installation on LINUX UBUNTU 10.10 | electrosin | OpenFOAM Installation | 40 | May 31, 2016 06:11 |
Local installation of OpenFoam 2.1.1- Red hat Linux | achinta | OpenFOAM Installation | 4 | June 6, 2012 01:42 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |