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 Attachment 37642 |
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, ---------- edit: Try running the following command: Code:
sudo update-alternatives --set mpi /usr/lib/openmpi/include ---------- Best regards, Bruno |
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 |
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.
|
Quote:
I have this problem too. Did you solve it? Could you plz tell me how? Thanks |
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:
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 |
Quote:
Yes I have two versions of OF on my PC. but I had separated them with alias in bashrc before. |
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? |
Quote:
|
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 |
Quote:
Dear Muhammad I solved the problem with deleting this line in my .bashrc file (in HOME directory): Quote:
Thank you my friend |
All times are GMT -4. The time now is 08:20. |