gpt4 book ai didi

python - 在Red Hat Enterprise Linux Server版本6.10(圣地亚哥)上构建MultiNest时,安装失败

转载 作者:行者123 更新时间:2023-12-02 10:56:49 25 4
gpt4 key购买 nike

在按照安装说明安装PyMultiNest的过程中,我遇到了障碍。这是我遵循的步骤顺序,但是在构建库(步骤2)时失败了,并且出现了以下错误:

(envsam) [user@comp-ic-0018 build]$ module unload   
(envsam) [user@comp-ic-0018 build]$ module load gcc/7.3.1
(envsam) [user@comp-ic-0018 build]$ module load mkl
(envsam) [user@comp-ic-0018 build]$ module load openmpi
(envsam) [user@comp-ic-0018 build]$ pip install mpi4py
Collecting mpi4py
Installing collected packages: mpi4py
Successfully installed mpi4py-3.0.3
You are using pip version 9.0.1, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(envsam) [user@comp-ic-0018 build]$ cmake ..
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Detected gfortran, adding -ffree-line-length-none compiler flag.
-- Configuring done
-- Generating done
-- Build files have been written to: /storage/home/user/work/MultiNest/build
(envsam) [user@comp-ic-0018 build]$ make
[ 1%] Building Fortran object src/CMakeFiles/multinest_mpi_shared.dir/utils.f90.o
[ 3%] Building Fortran object src/CMakeFiles/multinest_mpi_shared.dir/utils1.f90.o
[ 5%] Building Fortran object src/CMakeFiles/multinest_mpi_shared.dir/kmeans_clstr.f90.o
[ 6%] Building Fortran object src/CMakeFiles/multinest_mpi_shared.dir/xmeans_clstr.f90.o
[ 8%] Building Fortran object src/CMakeFiles/multinest_mpi_shared.dir/posterior.F90.o
[ 10%] Building Fortran object src/CMakeFiles/multinest_mpi_shared.dir/priors.f90.o
[ 12%] Building Fortran object src/CMakeFiles/multinest_mpi_shared.dir/nested.F90.o
mpif-sizeof.h:18.48:
Included at mpif.h:61:
Included at /storage/home/user/work/MultiNest/src/nested.F90:14:

USE, INTRINSIC :: iso_fortran_env, ONLY: REAL128
1
Error: Symbol 'real128' referenced at (1) does not exist in intrinsic module ISO_FORTRAN_ENV
mpif-sizeof.h:19.14:
Included at mpif.h:61:
Included at /storage/home/user/work/MultiNest/src/nested.F90:14:

COMPLEX(REAL128)::x
1
Error: Parameter 'real128' at (1) has not been declared or is a variable, which does not reduce to a constant expression
mpif-sizeof.h:25.48:
Included at mpif.h:61:
Included at /storage/home/user/work/MultiNest/src/nested.F90:14:

USE, INTRINSIC :: iso_fortran_env, ONLY: REAL128
1
Error: Symbol 'real128' referenced at (1) does not exist in intrinsic module ISO_FORTRAN_ENV
mpif-sizeof.h:26.14:
Included at mpif.h:61:
Included at /storage/home/user/work/MultiNest/src/nested.F90:14:

COMPLEX(REAL128), DIMENSION(*)::x
1
Error: Parameter 'real128' at (1) has not been declared or is a variable, which does not reduce to a constant expression
mpif-sizeof.h:32.48:
Included at mpif.h:61:
Included at /storage/home/user/work/MultiNest/src/nested.F90:14:

USE, INTRINSIC :: iso_fortran_env, ONLY: REAL128
1

....
Error: Symbol 'real32' referenced at (1) does not exist in intrinsic module ISO_FORTRAN_ENV
Fatal Error: Error count reached limit of 25.
make[3]: *** [src/CMakeFiles/multinest_mpi_shared.dir/build.make:149: src/CMakeFiles/multinest_mpi_shared.dir/nested.F90.o] Error 1
make[2]: *** [src/CMakeFiles/multinest_mpi_shared.dir/build.make:155: src/CMakeFiles/multinest_mpi_shared.dir/nested.F90.o.provides] Error 2
make[1]: *** [CMakeFiles/Makefile2:108: src/CMakeFiles/multinest_mpi_shared.dir/all] Error 2
make: *** [Makefile:117: all] Error 2

这个 post建议使用gfortran 6或7。我在做同样的事情,但仍然遇到错误。

寻求帮助以解决此问题。

最佳答案

按照作者here的建议清除build/文件夹即可解决此问题。

关于python - 在Red Hat Enterprise Linux Server版本6.10(圣地亚哥)上构建MultiNest时,安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60841741/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com