CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Problem in installation of OpenFOAM-2.3.x

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2014, 09:18
Default Problem in installation of OpenFOAM-2.3.x
  #1
Member
 
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 13
Parisa_Khiabani is on a distinguished road
Hello,
I have a hard time to install OpenFOAM-2.3.x on Ubunto 12.04, I never had this problem with other versions. I just copied the steps that I do, as follows:

1- sudo su -

2- apt-get install git-core

3 Make a directory OpenFOAM in home.

4- inside OpenFOAM at home, git clone
git://github.com/OpenFOAM/OpenFOAM-2.3.x.git

5- inside OpenFOAM at home, tar xzf ThirdParty-2.3.0.tgz, then: mv ThirdParty-2.3.0 ThirdParty-2.3.x

6- sudo su -

7- apt-get install build-essential flex bison cmake zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libncurses-dev libxt-dev

8-inside $HOME/OpenFOAM/OpenFOAM-2.3.x/etc: I copied source $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc at the end of the file.

9- Here is the problem, I cannot see Allwmake in $WM_PROJECT_DIR. In fact, it says that the environment variables are inconsistent with the installation.

I really appreciate if you help me at this.

Best,
Parisa
Parisa_Khiabani is offline   Reply With Quote

Old   October 4, 2014, 12:57
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Parisa,

You can find detailed instructions for installing OpenFOAM 2.3.0 on Ubuntu 12.04 here: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04
But you'll have to adapt the instructions for installing OpenFOAM 2.3.x.

I believe the error you've made was here:
Quote:
Originally Posted by Parisa_Khiabani View Post
8-inside $HOME/OpenFOAM/OpenFOAM-2.3.x/etc: I copied source $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc at the end of the file.
Have a look at the link above and I also strongly advise you to study this page: http://openfoamwiki.net/index.php/In...with_the_Shell

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 4, 2014, 06:05
Default
  #3
Senior Member
 
Muhammad Waqas
Join Date: Jul 2014
Location: Germany
Posts: 122
Rep Power: 11
mwaqas is on a distinguished road
Send a message via Skype™ to mwaqas
Hello everyone

Currently I am using OF2.3.0 and I am trying to update to 2.3.x. I have followed the instructions as given at openfoam.org. The instructions are same as #Parisa mentioned above except
Quote:
8-inside $HOME/OpenFOAM/OpenFOAM-2.3.x/etc: I copied source $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc at the end of the file.
I have copied "source $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc" at the end of $HOME/.bashrc.
In waqas@waqas-Inspiron-N5050:~$ (my home directory) when i type "./Allwmake", it says "bash: ./Allwmake: No such file or directory"

can you please tell me where I am making mistake

Regards
Muhammad
mwaqas is offline   Reply With Quote

Old   December 4, 2014, 07:03
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You should run Allwmake script in $HOME/OpenFOAM/OpenFOAM-2.3.x but you ran it in your home folder and that resulted in error.
alexeym is offline   Reply With Quote

Old   December 4, 2014, 08:49
Default
  #5
Senior Member
 
Muhammad Waqas
Join Date: Jul 2014
Location: Germany
Posts: 122
Rep Power: 11
mwaqas is on a distinguished road
Send a message via Skype™ to mwaqas
Hello Alexeym

Thank you for you quick response. When I run
waqas@waqas-Inspiron-N5050:~/OpenFOAM/OpenFOAM-2.3.x$ ./Allwmake
it gives following error
Error: Directory does not exist /opt/OpenFOAM-2.3.x
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.

and when I run
waqas@waqas-Inspiron-N5050:~/OpenFOAM/OpenFOAM-2.3.x$ Allwmake
it gives this error
Allwmake: command not found

I am having some confusion regarding 2.3.x installation

  1. I am already having 2.3.0, and I am trying to install 2.3.x in parallel (I am not removing 2.3.0). Is it possible or do I have to uninstall the older version ?
  2. In "$HOME/.bashrc." I have added at the "source $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc" . "$HOME/.bashrc." file already has "source /opt/openfoam230/etc/bashrc". is it ok? Mean my "$HOME/.bashrc." file has following lines at the end


source /opt/openfoam230/etc/bashrc

source $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc


Regards
Muhammad
mwaqas is offline   Reply With Quote

Old   December 4, 2014, 09:04
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Well, in short, yes, it OK to have any number of OpenFOAM installation but you have to follow certain rules. Right now you do not.

Longer:

You've got a line

Code:
source /opt/openfoam230/etc/bashrc
in your $HOME/.bashrc, this line sets up environment for OpenFOAM 2.3.0 installed system-wide. Then you add next line

Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc
It tries to re-setup environment but OpenFOAM uses

Code:
: ${FOAM_INST_DIR:=$foamInstall}; export FOAM_INST_DIR
this type of initialization, and certain variables keep their old values. So you get this error:

Code:
Error: Directory does not exist /opt/OpenFOAM-2.3.x
Error: Current directory is not $WM_PROJECT_DIR
As you can see WM_PROJECT_VERSION variable was updated (and became 2.3.x) while FOAM_INST_DIR kept old value /opt.

Here's possible solution for your problem: http://openfoamwiki.net/index.php/In...nFOAM_versions
alexeym is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
problem with parmetis-3.1.1 installation for openfoam 1.6-ext achyutan OpenFOAM Installation 11 October 26, 2012 18:18
Openfoam installation problem jose soto OpenFOAM Installation 4 August 9, 2011 01:29
OpenFOAM 1.7.0 installation problem stevek OpenFOAM 14 December 1, 2010 15:30
Problem in installation of OpenFOAM sachin OpenFOAM Installation 7 January 22, 2008 01:40


All times are GMT -4. The time now is 11:29.