|
[Sponsors] |
[OpenFOAM.com] Problems compiling from source on Ubuntu (18.04, 20.04 etc). -lmpi not found |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 21, 2020, 08:06 |
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 |
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-devWould 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 |
|
|
|
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 |