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

[OpenFOAM.com] Problems compiling from source on Ubuntu (18.04, 20.04 etc). -lmpi not found

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2020, 08:06
Default Problems compiling from source on Ubuntu (18.04, 20.04 etc). -lmpi not found
  #1
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
A few people have reported an odd issue with finding libmpi.so on various Ubuntu installations, but strangely enough, not on a docker image of Ubuntu. Some details of the detective work can be found here: https://develop.openfoam.com/Develop.../-/issues/1817
The summary is that the installation triggers for libopenmpi-dev might be run too soon and it fails to properly create a symbolic link for libmpi.so to the underlying library (eg, to libmpi.so.40.20.3)
If this occurs, there will be problems compiling Pstream with the message that -lmpi cannot be found.
One remedy (might be a bit heavy-handed) is to forcibly reinstall the libopenmpi-dev. When doing so, we wish to not remove/reinstall any other packages.
$ sudo dpkg --remove --force-all libopenmpi-dev
$ sudo apt install libopenmpi-dev
Would be happy if there was a nicer way to do this, but it seems to solve things.
If you don't want to bother with compiling from source, just one one of the precompiled packages instead
https://develop.openfoam.com/Develop...ompiled/debian
olesen 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
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 16:11
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21


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