我尝试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
根据上面的评论,
sudo ldconfig
我在@NORbert 提供的步骤之后阅读了该链接。您不需要自己编译 OpenMPI。
此软件包在Ubuntu 存储库中提供。
只需安装它:
然后继续只编译 Ray Surveyor。
尝试在 Ubuntu 18.04 中安装 OpenMPI 4.0.0 时出现此错误。我想要另一个库的这个特定版本。我通过运行
sudo make all install
而不是解决了这个问题make all install
。您也可以在问题的错误日志中注意到此错误 (Permission denied
)。