错误是因为缺少文件libmpi.so.1 [英] Error because file libmpi.so.1 missing

查看:1462
本文介绍了错误是因为缺少文件libmpi.so.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Omnet ++和Veins进行仿真,并且在昨晚从Ubuntu 15升级到16.04 LTS之前,它运行良好.现在,尝试运行模拟时出现以下错误:error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory

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: libmpi.so.1: cannot open shared object file: No such file or directory

我搜索了libmpi.so.1,似乎丢失了.在/usr/lib/openmpi/lib中有一个文件libmpi.so和libmpi.so.12,但没有libmpi.so.1.我尝试卸载并重新安装从网站下载的软件包openmpi-bin,libopenmpi-dev以及OpenMPI.我还使用export LD_LIBRARY_PATH:=$PATH:/usr/lib/openmpi/lib/

I searched for libmpi.so.1 and it seems it is missing. There is a file libmpi.so and libmpi.so.12 in /usr/lib/openmpi/lib but not libmpi.so.1. 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/

这些方法都不起作用,我仍然遇到相同的错误.关于如何修复它以及如何获取文件libmpi.so.1的任何建议?

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 libmpi.so.1?

推荐答案

我可以通过在/usr/lib中添加一个指向现有libmpi.so.12的符号链接libmpi.so.1来解决此问题(再次指向openmpi/lib中实际文件的位置.

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

显然,这是OpenMPI版本的问题,因为在我未更新的其他系统上,存在指向libmpi.so.1.0.8的符号链接libmpi.so.1(但没有libmpi) .so.12).

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 libmpi.so.1 pointing to libmpi.so.1.0.8 (but no libmpi.so.12).

这篇关于错误是因为缺少文件libmpi.so.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆