Problem of installation of OF2.3.1 with libmpi
Dear all,
I am new here but I used OpenFoam a few years ago under Ubuntu. I now try some new versions of OpenFoam and I come back to Ubuntu. I work under Ubuntu 14.04.2 LTS. I try to install OpenFoam 2.3.1 (for compatibilty reasons with previous works). I followed the procedure described on this page : http://www.openfoam.org/archive/2.3....oad/ubuntu.php but I have some problems when I verify that everything is ok. Paraview is launched perfectly but I can't lauch Openfoam. When I type icoFoam -help I obtain the following error : icoFoam: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory I've done a research on the web and on this forum but I've found nothing that can help me. As it's wrtitten, it seems that the file "libmpi.so.0" is not present on my system, which is true... Actually, I think it's a problem of OpenMPI installation or configuration but I can't find a solution to install and configure them correctly. OpenMPI is installed and is located here : /usr/lib/openmpi Thank you very much for the help that you could give ! Best regards, |
Hello !
An idea, but I'm not enough experienced to know if it's a good one : I've noticed that I can't find the resquested file on the system. I don't know if openmpi is installed by default on Ubuntu 14.04 LTS or if its installation is made by some programs, like Openfoam. If it's the case, I don't understand why Openfoam doesn't install the good version, with appropriate files. If it's not, I wonder if the solution is to install openmpi manually, or to modify some files in openfoam to match them together ? And in this cas, how to do that ? Anyway, thanks a lot for your help ! |
Hello !
I post to up the topic because I am quite helpless and I really need some helpful information. At this time I have no ideas to complete my OF 2.3.1 installation... I thought that if someone of you could tell me if this problem is associated to Openfoam or Ubuntu, it would be very helpful. I've tried to reinstall OF 2.3.1 but, as it has been already installed, there's no changes. Is it a problem of configuration of OF, and by which way ? Or is it a need to install OpenMPI correctly ? I think that it could be helpful if someone can take a look at his own installation of OF 2.3.1, or if someone can verify on his own system if the file requested (and I think that some other files will be asked by OF after) is present (i.e. libmpi.so.0). Thank you again for your help of anykind. Best Regards, |
Greetings Jeremy and welcome to the forum!
My guess is that you have installed both MPICH and Open-MPI, which is resulting in a collision of libraries, i.e. the reason why "libmpi.so.0" is not accessible is because MPICH's library is the default. My suggestion is to build OpenFOAM 2.3.1 from source code:
Bruno |
Thanks a lot Bruno !
I will try your solution soon and I will tell you how it works. Thanks again ! |
Problem solved
Dear Bruno,
Thanks a lot for your help, Actually, it seems that my problem came from a previous installation of OF210 on my system. I just installed OF231 as described here : http://www.openfoam.org/archive/2.3....oad/ubuntu.php (Ubunutu Deb Pack Installation) but I added the command that is indicated in the link you gave : http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04 (step #5) It allowed to specifiy the good MPI library, without conflicts. And now it works ! Thanks again ! |
All times are GMT -4. The time now is 06:55. |