|
[Sponsors] |
September 10, 2013, 08:44 |
how to install OF 2.2.1 on Ubuntu 10.04
|
#1 |
New Member
Hao Wang
Join Date: Aug 2013
Posts: 14
Rep Power: 12 |
Hallo everyone!
Currently I am working with Ubuntu 10.04 and I want to install OpenFoam 2.2.1 on my pc. Is it possible because the latest OpenFoam release doesn't cover that version? Any detailed steps I can follow? Thanks a lot! |
|
September 10, 2013, 17:35 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Hao and welcome to the forum!
You can follow these instructions: http://openfoamwiki.net/index.php/In...u#Ubuntu_10.04 - but make sure to use "2.2.1" instead of "2.2.0", while you are following the instructions! Best regards, Bruno
__________________
|
|
September 16, 2013, 07:50 |
error
|
#3 | |
New Member
Hao Wang
Join Date: Aug 2013
Posts: 14
Rep Power: 12 |
Quote:
I did follow the instruction but some errors occured. First of all, in download command I used 2.2.1 instead of 2.2.0, but I still got version 2.2.0. Well, then 2.2.0, I got stuck at this step: root@Nadine:~/OpenFOAM/OpenFOAM-2.2.0/etc# source $HOME/nadine/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI \ > foamCompiler=ThirdParty WM_COMPILER=Gcc45 bash: /home/nadine/nadine/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc: No such file or director I also had a look at http://www.cfd-online.com/Forums/ope...-10-04lts.html. I also modify the bashrc file, changing the line 62 with foamCompiler=ThirdParty, but this problem still remains. The next step is: Then go to the file Code: ~/OpenFOAM/OpenFOAM-2.2.0/etc/config/settings.sh and change the line 244 to Code: gcc_version=gcc-4.6.2 but in this file line 244 is 'setenv WM_CXX 'clang++'' . Could you give me some suggestions? |
||
September 17, 2013, 05:00 |
update from openfoam 2.1.0 to 2.2.1 on ubuntu 10.04
|
#4 |
New Member
Hao Wang
Join Date: Aug 2013
Posts: 14
Rep Power: 12 |
Hi foamers,
I am working with ubuntu 10.04, Gcc 4.4.3. I already have a openfoam 2.1.1 installed. Now I want to install 2.2.0 instead, how can I do? I did follow the website http://openfoamwiki.net/index.php/In...M-2.2.0/Ubuntu, but after unpacking the OpenFoam and ThirdParty source, I found that the folder of OpenFoam-2.2.0 has a symbol of locker. I stuck at this step: bash: ./home/nadine/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc: No such file or directory. I don't know why and I am quite new to openfoam, not that familiar to linux. Someone has idea to solver this problem? |
|
September 17, 2013, 08:35 |
|
#5 |
Senior Member
|
Hi Hao,
you can have more than one OF-installation on your computer ->if your hard disk is big enought {hard not to be these days} ;-) Anyway how is your "$HOME/.bashrc" looking? You can work with the "alias"-command to choose which OF-version you gonna work with, a good read might be http://www.cfd-online.com/Forums/ope...e-machine.html http://www.cfd-online.com/Forums/blo...vironment.html |
|
September 17, 2013, 16:01 |
|
#6 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22 |
Hi Hao,
Two things that immediately cross my mind: 1. Did you put a space between . and / cause this is required: Code:
. /home/nadine/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc Code:
ls -l /home/nadine/OpenFOAM Lieven |
|
September 17, 2013, 17:11 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Hao: Sorry for the late reply, but these past days have been rather busy on my side. OK, from your description, the problem is that you didn't do the last command from step #1 of the instructions: http://openfoamwiki.net/index.php/In...u#Ubuntu_10.04 - namely this command: Code:
exit As for the downloaded files, the problem was that you didn't replace both version numbers that are in each command line. There are 2 occurrences of "2.2.0" on each line that starts with wget. As for having more than one version of OpenFOAM installed, study Elvis' links. Now, as for repairing the currently misplaced files, this is going to be a bit tricky, because I'll have to assume some details, so please pay close attention to the details I'm going to try to explain next:
Bruno PS: I've merged the two threads, because they referred to the same topic.
__________________
|
|
September 18, 2013, 05:36 |
|
#8 | |
New Member
Hao Wang
Join Date: Aug 2013
Posts: 14
Rep Power: 12 |
Quote:
My $HOME/.bashrc is as followed: 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 # source /opt/openfoam201/etc/bashrc # source /opt/openfoam210/etc/bashrc #. /opt/openfoam210/etc/bashrc # source /opt/openfoam210/etc/bashrc alias of210='. /opt/openfoam210/etc/bashrc' # source /opt/openfoam221/etc/bashrc alias of221='. /opt/OpenFOAM-2.2.1/etc/bashrc' Last edited by wyldckat; September 19, 2013 at 18:57. Reason: Added [CODE][/CODE] |
||
September 19, 2013, 04:24 |
|
#9 |
New Member
Hao Wang
Join Date: Aug 2013
Posts: 14
Rep Power: 12 |
Thanks Bruno,
many thanks for your help, but I got stuck again. I did forget to exit from root before. When I follow your instruction to correct this error, something strange occured at step 5 that my location was /home/nadine/OpenFOAM. So I just shut the terminal and open it again, follow the instruction on http://openfoamwiki.net/index.php/In...u#Ubuntu_10.04. This time I went further but get stuck at step 7. I run ./Allwmake > make.log 2>&1 second time but got some errors and no openfoam command (icoFoam) can be found. Now I can't use any version of OF now. How can I fix it? Attached is the file make.log. Cheers, Hao |
|
September 19, 2013, 08:31 |
|
#10 |
New Member
Hao Wang
Join Date: Aug 2013
Posts: 14
Rep Power: 12 |
Hi Elvis,
sorry for the late reply! I tried Bruno's solution and went further but still suffered some problems. I misunderstood the directory and made some mistakes before. Now I have an other problem. When I run ' ./Allwmake > make.log 2>&1', permission denied. Then I tried 'sudo ./Allwmake' and it gave me: Code:
./Allwmake: 9: 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. Looking forward to your reply. Cheers, Hao Last edited by wyldckat; September 19, 2013 at 18:58. Reason: Added [CODE][/CODE] |
|
September 19, 2013, 19:04 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Hao,
OK, the problem is that something very wrong happened when you followed the instructions in the steps #3, #4 and #5. Because the error you are getting is due to you trying to build OpenFOAM 2.2.1 with Gcc 4.4 that your Ubuntu has got, which is incompatible with OpenFOAM 2.2 . My advice is to:
Bruno
__________________
|
|
September 20, 2013, 04:32 |
|
#12 |
New Member
Hao Wang
Join Date: Aug 2013
Posts: 14
Rep Power: 12 |
Hi Bruno,
I check my gcc version and now is already 4.5.2. The final lines of my ~/.bashrc file are: # source /opt/openfoam210/etc/bashrc alias of210='. /opt/openfoam210/etc/bashrc' # source /opt/openfoam221/etc/bashrc alias of221='source $HOME/OpenFOAM/OpenFOAM-2.2.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI foamCompiler=ThirdParty WM_COMPILER=Gcc45' source /home/nadine/OpenFOAM/OpenFOAM-2.2.0/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI foamCompiler=ThirdParty WM_COMPILER=Gcc45 WM_ARCH_OPTION=32 source /home/nadine/OpenFOAM/OpenFOAM-2.2.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI foamCompiler=ThirdParty WM_COMPILER=Gcc45 WM_ARCH_OPTION=32 source /home/nadine/OpenFOAM/OpenFOAM-2.2.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI foamCompiler=ThirdParty WM_COMPILER=Gcc45 WM_ARCH_OPTION=32 Then I started a new terminal and run of221. cd $WM_THIRD_PARTY_DIR In this directory, both getBinutils and makeBinutils exist, but: nadine@Nadine:~/OpenFOAM/ThirdParty-2.2.1$ chmod +x get* make* chmod: changing permissions of `getBinutils': Operation not permitted chmod: changing permissions of `getGcc': Operation not permitted chmod: changing permissions of `makeBinutils': Operation not permitted chmod: changing permissions of `makeCGAL': Operation not permitted chmod: changing permissions of `makeCmake': Operation not permitted chmod: changing permissions of `makeFastdualoctree_sgp': Operation not permitted chmod: changing permissions of `makeGcc': Operation not permitted chmod: changing permissions of `makeGcc46': Operation not permitted chmod: changing permissions of `makeGcc47': Operation not permitted chmod: changing permissions of `makeGperftools': Operation not permitted chmod: changing permissions of `makeLLVM': Operation not permitted chmod: changing permissions of `makeParaView': Operation not permitted chmod: changing permissions of `makeQt': Operation not permitted I was wondering why. Additionally, I have a OF 2.1.0 installed as root in opt/~, does it matter? Cheers, Hao |
|
September 21, 2013, 06:00 |
Problem solved
|
#13 |
New Member
Hao Wang
Join Date: Aug 2013
Posts: 14
Rep Power: 12 |
Dear all,
thanks for your help!!! I solved the problem a few minutes ago. Actually it is very easy, the instruction is correct. Just because I download two packages as a administrator but tried to install them as an user. Delete everything I created and downloaded and start from the very beginning, that's all! |
|
Tags |
openfoam 2.2.1 10.04 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] OpenFOAM-1.5 on Ubuntu 10.04 | kurne | OpenFOAM Installation | 24 | March 12, 2015 16:03 |
Can we install OpenFOAM v2.0.x in Ubuntu 10.04 LTS? | hahajiushixing | OpenFOAM | 2 | January 10, 2012 20:37 |
Ansys fluent 13.0 on ubuntu 10.04 | mundhwam | FLUENT | 2 | September 1, 2011 10:14 |
OpenFOAM 1.7 Ubuntu 10.04 | stark22 | OpenFOAM Installation | 2 | July 24, 2011 11:22 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 14:43 |