尝试安装openmpi的分段错误 [英] Segmentation fault trying to install openmpi

查看:190
本文介绍了尝试安装openmpi的分段错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装openmpi,但是经过不同的尝试后,我仍然无法使用它.

I'm trying to install openmpi but after different attempts I still can't use it.

这是

This is the last guide I followed. I simply copied and paste each command line.

这是我从终端上获得的内容:mpirun

Here is what I obtained from my terminal when I run: mpirun

timmy@timmy-Lenovo-G50-80 ~/openmpi-1.8.1 $ mpirun
[timmy-Lenovo-G50-80:21817] *** Process received signal ***
[timmy-Lenovo-G50-80:21817] Signal: Segmentation fault (11)
[timmy-Lenovo-G50-80:21817] Signal code: Address not mapped (1)
[timmy-Lenovo-G50-80:21817] Failing at address: 0x7fab73035000
[timmy-Lenovo-G50-80:21817] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340)[0x7fab73e20340]
[timmy-Lenovo-G50-80:21817] [ 1] /home/timmy/.openmpi/lib/openmpi/mca_shmem_mmap.so(+0x1886)[0x7fab72e32886]
[timmy-Lenovo-G50-80:21817] [ 2] /home/timmy/.openmpi/lib/libopen-pal.so.13(opal_shmem_base_select+0x38)[0x7fab740d6b38]
[timmy-Lenovo-G50-80:21817] [ 3] /home/timmy/.openmpi/lib/libopen-pal.so.13(opal_init+0x1a2)[0x7fab74057cd2]
[timmy-Lenovo-G50-80:21817] [ 4] mpirun[0x403db1]
[timmy-Lenovo-G50-80:21817] [ 5] mpirun[0x40361d]
[timmy-Lenovo-G50-80:21817] [ 6] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fab73a6cec5]
[timmy-Lenovo-G50-80:21817] [ 7] mpirun[0x403539]
[timmy-Lenovo-G50-80:21817] *** End of error message ***
Errore di segmentazione

所以我重新启动,现在我只得到这个:

So I reboot and now I obtain only this:

mpirun: error while loading shared libraries: libopen-rte.so.12: cannot open shared object file: No such file or directory

要在Linux上运行mpi,我需要做什么?

What I have to do to make works mpi on linux?

推荐答案

您需要将LD_LIBRARY_PATH设置为包含/home/timmy/.openmpi/lib.具体来说,您必须将所遵循的指南中的这两行放在其中:

You need to set your LD_LIBRARY_PATH to include /home/timmy/.openmpi/lib. Specifically, you have to put those two lines from the guide you've followed:

export PATH="$PATH:/home/$USER/.openmpi/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/"

进入外壳的初始化文件.

into your shell's initialisation file.

关于第一个错误,它发生在Open MPI的mmap shmem组件初始化期间的某个地方,可能表明您的构建有问题.尝试删除/home/timmy/.openmpi并再次重建.甚至尝试使用系统的程序包管理器安装该库-几乎每个发行版的程序包存储库中都提供了或多或少的Open MPI版本.

As to the first error, it occurs somewhere during the initialisation of the mmap shmem component of Open MPI and could indicate problems with your build. Try removing /home/timmy/.openmpi and rebuilding again. Or even try installing the library using your system's package manager - a more or less recent version of Open MPI is available in the package repository of virtually every distribution.

这篇关于尝试安装openmpi的分段错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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