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

[OpenFOAM.org] Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By mwaqas
  • 1 Post By alimea

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2015, 06:03
Exclamation Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04
  #1
New Member
 
Masoud
Join Date: Mar 2015
Posts: 1
Rep Power: 0
masoudshao is on a distinguished road
Dear Bruno,

I am using Ubuntu 12.04 LTS 64bit and I am trying to install openfoam 2.3.1. While testing the installation I got:

Code:
Third party software
-------------------------------------------------------------------------------
Software Version   Location 
-------------------------------------------------------------------------------
flex     2.5.35    /usr/bin/flex                                            
gcc      4.6.3     /usr/bin/gcc                                             
gzip     1.4       /bin/gzip                                                
tar      1.26      /bin/tar                                                 
icoFoam           
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/masoud/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/icoFoam
          current path             : 
          CRITICAL ERROR
Could you please help me solve this?

make.log.tar.gz
masoudshao is offline   Reply With Quote

Old   March 8, 2015, 08:39
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Masoud and welcome to the forum!

I moved your post from the other thread, since the other one was for OpenFOAM 2.0.0.

I need to know something: how and when exactly did you install the MPI toolbox "LAM"?
I ask this because I'm not able to reproduce this problem with Ubuntu 12.04:
Code:
In file included from /usr/lib/lam/include/mpicxx.h:42:0,
                 from /usr/lib/lam/include/mpi.h:1128,
                 from ptscotchDecomp.C:125:
And because there was no problem when "libPstream" was built (it also depends on MPI)... which makes it even stranger!?

----------

edit: Try running the following command:
Code:
sudo update-alternatives --set mpi /usr/lib/openmpi/include
The run Allwmake once again.

----------

Best regards,
Bruno
__________________

Last edited by wyldckat; March 8, 2015 at 09:21. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   April 23, 2015, 07:28
Default
  #3
Senior Member
 
Muhammad Waqas
Join Date: Jul 2014
Location: Germany
Posts: 122
Rep Power: 12
mwaqas is on a distinguished road
Send a message via Skype™ to mwaqas
Dear Bruno,

I am trying to install OpenFoam-2.3.1. on ubuntu 12.04, I am already using OF-2.1.1. I want to install OF-2.3.1 in parallel with 2.1.1. I want to install 2.3.1 in Home/OpenFoam$. I followed your instructions as you mentioned in your instruction on: https://openfoamwiki.net/index.php/I...M-2.3.1/Ubuntu

When I run the command
source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPII get following message

bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/etc/config/settings.sh: No such file or directory
bash: /opt/OpenFOAM-2.3.1/etc/config/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory

Can you please tell me where I am making mistake and how can I install both version at the same time.

Regards
Kummi likes this.
mwaqas is offline   Reply With Quote

Old   April 23, 2015, 17:01
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quick answer - Please study this page: http://openfoamwiki.net/index.php/In...with_the_Shell - there you'll find details on how to have more than one OpenFOAM version installed.
wyldckat is offline   Reply With Quote

Old   August 8, 2018, 03:32
Default
  #5
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Quote:
Originally Posted by mwaqas View Post
Dear Bruno,

I am trying to install OpenFoam-2.3.1. on ubuntu 12.04, I am already using OF-2.1.1. I want to install OF-2.3.1 in parallel with 2.1.1. I want to install 2.3.1 in Home/OpenFoam$. I followed your instructions as you mentioned in your instruction on: https://openfoamwiki.net/index.php/I...M-2.3.1/Ubuntu

When I run the command
source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPII get following message

bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/etc/config/settings.sh: No such file or directory
bash: /opt/OpenFOAM-2.3.1/etc/config/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory

Can you please tell me where I am making mistake and how can I install both version at the same time.

Regards
Hi

I have this problem too.
Did you solve it?
Could you plz tell me how?

Thanks
alimea is offline   Reply With Quote

Old   August 8, 2018, 05:58
Default
  #6
Senior Member
 
Muhammad Waqas
Join Date: Jul 2014
Location: Germany
Posts: 122
Rep Power: 12
mwaqas is on a distinguished road
Send a message via Skype™ to mwaqas
Hello Alimea,


It will be easier for me to reply if you could post your exact problem and what do you want to do.
As far as my problem was concerned, I wanted to have two different version of OF at the same time.
To have more than one version, one has to source the environment for each version by adding the following line in .baschr file
Quote:
alias of5x='source $HOME/OpenFOAM/OpenFOAM-5.x/etc/bashrc WM_LABEL_SIZE=64 FOAMY_HEX_MESH=yes'
Then you have to enter "of5x" (in this above example), whenever you open a new terminal to use his particular version.


You could alias as many version as you want.
I hope it is not confusing



PS: To open .baschr file you can use following command in your home directory "gedit .baschr"

Regards
mwaqas is offline   Reply With Quote

Old   August 8, 2018, 06:41
Default
  #7
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Quote:
Originally Posted by mwaqas View Post
Hello Alimea,


It will be easier for me to reply if you could post your exact problem and what do you want to do.
As far as my problem was concerned, I wanted to have two different version of OF at the same time.
To have more than one version, one has to source the environment for each version by adding the following line in .baschr file
Then you have to enter "of5x" (in this above example), whenever you open a new terminal to use his particular version.


You could alias as many version as you want.
I hope it is not confusing



PS: To open .baschr file you can use following command in your home directory "gedit .baschr"

Regards
Dear Muhammad

Yes I have two versions of OF on my PC. but I had separated them with alias in bashrc before.
alimea is offline   Reply With Quote

Old   August 8, 2018, 09:54
Default
  #8
Senior Member
 
Muhammad Waqas
Join Date: Jul 2014
Location: Germany
Posts: 122
Rep Power: 12
mwaqas is on a distinguished road
Send a message via Skype™ to mwaqas
Dear Alimea,
You can have two version as I mentioned above.

If you have two versions and separated them with alias in baschr. What problem are you facing now?
mwaqas is offline   Reply With Quote

Old   August 8, 2018, 10:44
Default
  #9
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Quote:
Originally Posted by mwaqas View Post
Dear Alimea,
You can have two version as I mentioned above.

If you have two versions and separated them with alias in baschr. What problem are you facing now?
As I mentioned in my last post, I need to install another version. Now It gave the error that is mentioned in your first message.
alimea is offline   Reply With Quote

Old   August 9, 2018, 05:24
Default
  #10
Senior Member
 
Muhammad Waqas
Join Date: Jul 2014
Location: Germany
Posts: 122
Rep Power: 12
mwaqas is on a distinguished road
Send a message via Skype™ to mwaqas
Hello alimea,


Ok, I am supposing you already have one version of OF in your machine (I guess it will be in home directory) and you want to install another one.
Do a fresh start with these steps.


1) Download 2nd version in you home directory which you want to install.
2) Source the environment by editing .baschr file. There should be alias command two times (for each version separately)
3) Type “source $HOME/.bashrc" in your terminal in home directory
4) Compile OF as you did for last installation.


About one thing I am not sure, I forgot. But you can try that if you face same error. When you open your terminal to source your environment. Before and/or after step 3 you can type alias command which you have used in .baschr file like "of5x" in post #6 example.



These were the steps, I used for my installation.


Regards
mwaqas is offline   Reply With Quote

Old   August 9, 2018, 07:13
Default
  #11
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Quote:
Originally Posted by mwaqas View Post
Hello alimea,


Ok, I am supposing you already have one version of OF in your machine (I guess it will be in home directory) and you want to install another one.
Do a fresh start with these steps.


1) Download 2nd version in you home directory which you want to install.
2) Source the environment by editing .baschr file. There should be alias command two times (for each version separately)
3) Type “source $HOME/.bashrc" in your terminal in home directory
4) Compile OF as you did for last installation.


About one thing I am not sure, I forgot. But you can try that if you face same error. When you open your terminal to source your environment. Before and/or after step 3 you can type alias command which you have used in .baschr file like "of5x" in post #6 example.



These were the steps, I used for my installation.


Regards

Dear Muhammad

I solved the problem with deleting this line in my .bashrc file (in HOME directory):

Quote:
“source /opt/.bashrc"
The recent version was "sourced" in .bashrc file. I deleted it and compile it correctly.

Thank you my friend
mwaqas likes this.
alimea is offline   Reply With Quote

Reply


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 12:58
[OpenFOAM.org] Installing OpenFOAM 2.3 on Ubuntu 18.04 Joe1best OpenFOAM Installation 15 August 5, 2021 23:21
[foam-extend.org] Problems installing foam-extend-3.2 on Ubuntu 12.04 roenby OpenFOAM Installation 4 September 13, 2016 04:01
[waves2Foam] Problems in Operating waveDyMFoam in openfoam 2.3.1 zhxter OpenFOAM Community Contributions 2 May 18, 2015 21:57
Problems installing SVN in Ubuntu (for later installing PyFoam for OpenFOAM) immortality Lounge 2 May 24, 2014 04:05


All times are GMT -4. The time now is 04:09.