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

[OpenFOAM.org] Problem of installation of OF2.3.1 with libmpi

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Jeje2015

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2015, 06:09
Default Problem of installation of OF2.3.1 with libmpi
  #1
New Member
 
Jeremy
Join Date: Jul 2015
Location: France
Posts: 5
Rep Power: 10
Jeje2015 is on a distinguished road
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,
Jeje2015 is offline   Reply With Quote

Old   July 12, 2015, 11:57
Default
  #2
New Member
 
Jeremy
Join Date: Jul 2015
Location: France
Posts: 5
Rep Power: 10
Jeje2015 is on a distinguished road
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 !
Jeje2015 is offline   Reply With Quote

Old   July 15, 2015, 03:41
Default
  #3
New Member
 
Jeremy
Join Date: Jul 2015
Location: France
Posts: 5
Rep Power: 10
Jeje2015 is on a distinguished road
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,
Jeje2015 is offline   Reply With Quote

Old   July 18, 2015, 17:29
Default
  #4
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 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:
  1. Uninstall OpenFOAM 2.3.1 deb package:
    Code:
    sudo apt-get remove openfoam231
  2. Then follow these instructions: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.04
    And make sure you also do the step #5 from those instructions.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2015, 12:38
Default
  #5
New Member
 
Jeremy
Join Date: Jul 2015
Location: France
Posts: 5
Rep Power: 10
Jeje2015 is on a distinguished road
Thanks a lot Bruno !

I will try your solution soon and I will tell you how it works.

Thanks again !
Jeje2015 is offline   Reply With Quote

Old   July 27, 2015, 08:31
Default Problem solved
  #6
New Member
 
Jeremy
Join Date: Jul 2015
Location: France
Posts: 5
Rep Power: 10
Jeje2015 is on a distinguished road
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 !
wyldckat likes this.
Jeje2015 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
[foam-extend.org] foam-extend-4.0 openSUSE Leap 42.1 Installation Problem icab OpenFOAM Installation 5 April 8, 2017 07:09
Problem with installation florvit ANSYS 0 December 8, 2016 09:10
[OpenFOAM.com] Installation Problem Manyway OpenFOAM Installation 2 July 8, 2016 13:47
Installation problem - calling blockMesh - libblockMesh.so aylalisa OpenFOAM Installation 5 November 28, 2012 09:55
ParaView installation problem on Suse 11.4 victorz OpenFOAM Installation 4 February 6, 2012 17:26


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