Error because libmpi.so.1 is missing

I use Omnet ++ and Veins for modeling, and it worked fine until I upgraded from Ubuntu 15 to 16.04 LTS last night. Now when I try to run the simulation, I get the following error:error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory

I searched libmpi.so.1 and it seems to be missing. The file / usr / lib / openmpi / lib has the file libmpi.so and libmpi.so.12, but not libmpi.so.1. I tried uninstalling and reinstalling the openmpi-bin, libopenmpi-dev, and OpenMPI packages that I downloaded from the website. I also set the variable in bashrc and profile (which was recommended online) withexport LD_LIBRARY_PATH:=$PATH:/usr/lib/openmpi/lib/

None of these approaches worked, and I still get the same error. Any suggestions on how to fix it and how to get the libmpi.so.1 file?

+4
source share
1 answer

I could fix the problem by adding the symbolic link libmpi.so.1 to / usr / lib, which points to the existing libmpi.so.12 (which again points to the location of the actual file in openmpi / lib).

Apparently, this was a problem with the OpenMPI version, because on my other system that I did not update there was a symbolic link libmpi.so.1 pointing to libmpi.so.1.0.8 (but without libmpi.so.12).

+6
source

All Articles