CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

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

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2020, 07:06
Default Problems compiling from source on Ubuntu (18.04, 20.04 etc). -lmpi not found
Senior Member
Mark Olesen
Join Date: Mar 2009
Posts: 1,712
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
A few people have reported an odd issue with finding on various Ubuntu installations, but strangely enough, not on a docker image of Ubuntu. Some details of the detective work can be found here:
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 to the underlying library (eg, to
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
olesen is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 15:11
[] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21

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