CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04 (https://www.cfd-online.com/Forums/openfoam-installation/149765-problems-installing-openfoam-2-3-1-ubuntu-12-04-a.html)

masoudshao March 8, 2015 05:03

Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04
 
1 Attachment(s)
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?

Attachment 37642

wyldckat March 8, 2015 07:39

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

mwaqas April 23, 2015 06:28

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

wyldckat April 23, 2015 16:01

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.

alimea August 8, 2018 02:32

Quote:

Originally Posted by mwaqas (Post 543370)
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

mwaqas August 8, 2018 04:58

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

alimea August 8, 2018 05:41

Quote:

Originally Posted by mwaqas (Post 701919)
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.

mwaqas August 8, 2018 08:54

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?

alimea August 8, 2018 09:44

Quote:

Originally Posted by mwaqas (Post 701942)
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.

mwaqas August 9, 2018 04:24

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

alimea August 9, 2018 06:13

Quote:

Originally Posted by mwaqas (Post 702046)
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


All times are GMT -4. The time now is 08:20.