我正在尝试在Ubutnu 16.04上安装MultiNest和PyMultiNest。我安装了OpenMPI,可以用它成功运行程序。但是,在安装MultiNest期间,在最终的“制作”期间,一步,我明白了:
kevin@kevin-VirtualBox:~/MultiNest/build$ make
Scanning dependencies of target multinest_static
[ 1%] Building Fortran object src/CMakeFiles/multinest_static.dir/utils.f90.o
[ 2%] Building Fortran object src/CMakeFiles/multinest_static.dir/utils1.f90.o
[ 4%] Building Fortran object src/CMakeFiles/multinest_static.dir/kmeans_clstr.f90.o
[ 5%] Building Fortran object src/CMakeFiles/multinest_static.dir/xmeans_clstr.f90.o
[ 7%] Building Fortran object src/CMakeFiles/multinest_static.dir/posterior.F90.o
[ 8%] Building Fortran object src/CMakeFiles/multinest_static.dir/priors.f90.o
[ 10%] Building Fortran object src/CMakeFiles/multinest_static.dir/nested.F90.o
[ 11%] Building Fortran object src/CMakeFiles/multinest_static.dir/cwrapper.f90.o
[ 12%] Linking Fortran static library ../../lib/libmultinest.a
[ 12%] Built target multinest_static
Scanning dependencies of target multinest_shared
[ 14%] Building Fortran object src/CMakeFiles/multinest_shared.dir/utils.f90.o
[ 15%] Building Fortran object src/CMakeFiles/multinest_shared.dir/utils1.f90.o
[ 17%] Building Fortran object src/CMakeFiles/multinest_shared.dir/kmeans_clstr.f90.o
[ 18%] Building Fortran object src/CMakeFiles/multinest_shared.dir/xmeans_clstr.f90.o
[ 20%] Building Fortran object src/CMakeFiles/multinest_shared.dir/posterior.F90.o
[ 21%] Building Fortran object src/CMakeFiles/multinest_shared.dir/priors.f90.o
[ 22%] Building Fortran object src/CMakeFiles/multinest_shared.dir/nested.F90.o
[ 24%] Building Fortran object src/CMakeFiles/multinest_shared.dir/cwrapper.f90.o
[ 25%] Linking Fortran shared library ../../lib/libmultinest.so
[ 25%] Built target multinest_shared
Scanning dependencies of target multinest_mpi_static
[ 27%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/utils.f90.o
[ 28%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/utils1.f90.o
[ 30%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/kmeans_clstr.f90.o
[ 31%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/xmeans_clstr.f90.o
[ 32%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/posterior.F90.o
[ 34%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/priors.f90.o
[ 35%] Building Fortran object src/CMakeFiles/multinest_mpi_static.dir/nested.F90.o
mpif.h:54: Error: Can't open included file 'mpif-config.h'
src/CMakeFiles/multinest_mpi_static.dir/build.make:206: recipe for target 'src/CMakeFiles/multinest_mpi_static.dir/nested.F90.o' failed
make[3]: *** [src/CMakeFiles/multinest_mpi_static.dir/nested.F90.o] Error 1
src/CMakeFiles/multinest_mpi_static.dir/build.make:222: recipe for target 'src/CMakeFiles/multinest_mpi_static.dir/nested.F90.o.provides' failed
make[2]: *** [src/CMakeFiles/multinest_mpi_static.dir/nested.F90.o.provides] Error 2
CMakeFiles/Makefile2:190: recipe for target 'src/CMakeFiles/multinest_mpi_static.dir/all' failed
make[1]: *** [src/CMakeFiles/multinest_mpi_static.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
非常感谢任何指导或见解。