计算化学公社

 找回密码 Forget password
 注册 Register
Views: 3935|回复 Reply: 5
打印 Print 上一主题 Last thread 下一主题 Next thread

[Amber] AmberTools22安装失败

[复制链接 Copy URL]

64

帖子

0

威望

602

eV
积分
666

Level 4 (黑子)

跳转到指定楼层 Go to specific reply
楼主
想请教一下AmberTools安装失败的原因,

在解压完后:
cd amber22_src/build
./run_cmake
出现了如下错误,使用sudo apt-get install gfortran等命令重装gfortran或者换版本也没用:
The Fortran compiler identification is GNU 7.5.0
-- Check for working Fortran compiler: /home/wzd/anaconda3/bin/x86_64-conda-linux-gnu-gfortran
-- Check for working Fortran compiler: /home/wzd/anaconda3/bin/x86_64-conda-linux-gnu-gfortran  -- broken
CMake Error at /usr/share/cmake-3.16/Modules/CMakeTestFortranCompiler.cmake:45 (message):
  The Fortran compiler

    "/home/abc/anaconda3/bin/x86_64-conda-linux-gnu-gfortran"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/abc/Downloads/amber22_src/build/CMakeFiles/CMakeTmp

ollect2: error: ld returned 1 exit status
    make[1]: *** [CMakeFiles/cmTC_6e0f3.dir/build.make:87:cmTC_6e0f3] 错误 1
    make[1]: 离开目录“/home/wzd/Downloads/amber22_src/build/CMakeFiles/CMakeTmp”
    make: *** [Makefile:121:cmTC_6e0f3/fast] 错误 2

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:109 (enable_language)


-- Configuring incomplete, errors occurred!



59

帖子

0

威望

1312

eV
积分
1371

Level 4 (黑子)

2#
发表于 Post on 2022-7-27 22:17:46 | 只看该作者 Only view this author
确保GCC、C++、fortran都有,我用的GCC8.3.1可以

310

帖子

0

威望

1503

eV
积分
1813

Level 5 (御坂)

3#
发表于 Post on 2022-7-27 22:59:21 | 只看该作者 Only view this author
如果只用AmberTools,建议用conda安装,可以省很多麻烦
conda create --name AmberTools22
conda activate AmberTools22
conda install -c conda-forge ambertools=22 compilers

64

帖子

0

威望

602

eV
积分
666

Level 4 (黑子)

4#
 楼主 Author| 发表于 Post on 2022-7-28 10:29:00 | 只看该作者 Only view this author
Frozen-Penguin 发表于 2022-7-27 22:59
如果只用AmberTools,建议用conda安装,可以省很多麻烦
conda create --name AmberTools22
conda activat ...

好的,谢谢啦!我去试试

64

帖子

0

威望

602

eV
积分
666

Level 4 (黑子)

5#
 楼主 Author| 发表于 Post on 2022-7-28 11:43:04 | 只看该作者 Only view this author
Jotaro 发表于 2022-7-27 22:17
确保GCC、C++、fortran都有,我用的GCC8.3.1可以

谢谢回复!我用conda安装的方式解决啦!

64

帖子

0

威望

602

eV
积分
666

Level 4 (黑子)

6#
 楼主 Author| 发表于 Post on 2022-7-28 11:43:47 | 只看该作者 Only view this author
Frozen-Penguin 发表于 2022-7-27 22:59
如果只用AmberTools,建议用conda安装,可以省很多麻烦
conda create --name AmberTools22
conda activat ...

感谢方法,解决问题了

本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2026-2-24 10:32 , Processed in 0.153970 second(s), 20 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list