openmpi 安装在本地和远程服务器上失败

openmpi 安装在本地和远程服务器上失败

我尝试4.0.5.tar.gz在学校的 Ubuntu 18.04 LTS 服务器上安装版本,但按照此处的说明失败:

shell$ gunzip -c openmpi-4.0.5.tar.gz | tar xf -
shell$ cd openmpi-4.0.5
shell$ ./configure --prefix=/usr/local
<...lots of output...>
shell$ make all install

所以我尝试了 3.1.6 版本,但再次失败。

错误是:

  make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/share/openmpi/amca-param-sets'
 /usr/bin/install -c -m 644 amca-param-sets/example.conf '/usr/local/share/openmpi/amca-param-sets'
/usr/bin/install: cannot remove '/usr/local/share/openmpi/amca-param-sets/example.conf': Permission denied
Makefile:1806: recipe for target 'install-dist_amca_paramDATA' failed
make[2]: *** [install-dist_amca_paramDATA] Error 1
make[2]: Leaving directory '/home/T00057442/openmpi31/openmpi-3.1.6/contrib'
Makefile:1897: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/T00057442/openmpi31/openmpi-3.1.6/contrib'
Makefile:1896: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

对于服务器和本地的 3.1.6 版本:

make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/share/openmpi/amca-param-sets'
/bin/mkdir: cannot create directory ‘/usr/local/share/openmpi’: Permission denied
Makefile:1789: recipe for target 'install-dist_amca_paramDATA' failed
make[2]: *** [install-dist_amca_paramDATA] Error 1
make[2]: Leaving directory '/media/nobu/UbuntuFiles/Downloads/openmpi-4.0.5/contrib'
Makefile:1880: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/media/nobu/UbuntuFiles/Downloads/openmpi-4.0.5/contrib'
Makefile:1879: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

所以两次都是install-am?那是什么?有人成功安装了 openmpi 或 mpich 吗?我需要它用于 Ray Surveyor: http://zorino.github.io/raysurveyor-tutorial/#/42

编辑:我跑

base) nobu@gold3forever:~/Desktop/BioInformatics/RA/kover/ray$ mpiexec --version
mpiexec: error while loading shared libraries: libopen-rte.so.40: cannot open shared object file: No such file or directory

然后我尝试:

(base) nobu@gold3forever:~/Desktop/BioInformatics/RA/kover/ray$ mpirun --version
mpirun: error while loading shared libraries: libopen-rte.so.40: cannot open shared object file: No such file or directory

最后

(base) nobu@gold3forever:~/Desktop/BioInformatics/RA/kover/ray$ mpicxx --showme:version
mpicxx: error while loading shared libraries: libopen-pal.so.40: cannot open shared object file: No such file or directory

我以为我没问题,按照@NOrbert 的回答中的指示,但是当我尝试安装 Ray Surveyor 时,我得到了

(base) nobu@gold3forever:~/Desktop/BioInformatics/RA/kover/ray$ make PREFIX=`pwd`/BUILD MAXKMERLENGTH=64 HAVE_LIBZ=y HAVE_LIBBZ2=y ASSERT=n;
  CXX code/application_core/ray_main.o
mpicxx: error while loading shared libraries: libopen-pal.so.40: cannot open shared object file: No such file or directory
Makefile:160: recipe for target 'code/application_core/ray_main.o' failed
make: *** [code/application_core/ray_main.o] Error 127

答案1

根据上述评论,sudo ldconfig我按照@NOrbert 提供的步骤阅读了该链接。

答案2

您不需要自己编译OpenMPI。

此包被呈现在 Ubuntu 存储库中。

只需使用以下命令安装即可:

sudo apt-add-repository universe
sudo apt-get install libopenmpi-dev

然后继续仅编译 Ray Surveyor。

答案3

我在 Ubuntu 18.04 中尝试安装 OpenMPI 4.0.0 时收到此错误。我想要另一个库的这个特定版本。我通过运行sudo make all install而不是解决了这个make all install问题。您也可以在问题的错误日志中注意到这个错误(Permission denied)。

相关内容