安装MultiNest for MPI时出错 - 缺少Fortran库

时间:2018-04-08 23:12:29

标签: mpi ubuntu-16.04

我正在尝试在Ubutnu 16.04上安装MultiNest和PyMultiNest。我安装了OpenMPI,可以用它成功运行程序。但是,在安装MultiNest期间,我得到了这个:

kevin@kevin-VirtualBox:~/MultiNest/build$ cmake ..
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Detected gfortran, adding -ffree-line-length-none compiler flag.
CMake Warning at /usr/share/cmake-3.5/Modules/FindMPI.cmake:406 (message):
  Unable to find MPI library mpi_mpifh
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindMPI.cmake:596 (interrogate_mpi_compiler)
  src/CMakeLists.txt:86 (FIND_PACKAGE)


-- Could NOT find MPI_Fortran (missing:  MPI_Fortran_LIBRARIES) 
-- MPI not found, only non-MPI MultiNest libraries will be built.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kevin/MultiNest/build

有关如何解决此问题的任何指导?

1 个答案:

答案 0 :(得分:1)

当我安装' libopenmpi-dev'时,cmake进程似乎正常完成。