Error because file missing

I'm using Omnet++ and Veins for simulations and it was working fine until I upgraded from Ubuntu 15 to 16.04 LTS last night. Now, I get the following error when trying to run a simulation: error while loading shared libraries: cannot open shared object file: No such file or directory

I searched for and it seems it is missing. There is a file and in /usr/lib/openmpi/lib but not I tried uninstalling and reinstalling the packages openmpi-bin, libopenmpi-dev as well as OpenMPI which I downloaded from the website. I also set the variable in bashrc and profile (which was recommended online) with export 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 file


  • I could fix the problem by adding a symbolic link in /usr/lib that points to the existing (which again points to the location of the actual file in openmpi/lib).

    Apparently, it was a problem with the version of OpenMPI since on my other system, which I didn't update, there was a symbolic link pointing to (but no