计算化学公社

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

[GROMACS] Gromacs2020.6安装Cuda加速版,cmake步骤报错

[复制链接 Copy URL]

68

帖子

0

威望

2311

eV
积分
2379

Level 5 (御坂)

我按照社长http://sobereva.com/457帖子中的内容安装gromacs2020.6。由于系统是Centos7.8,需要对gcc进行升级。开始是按照https://www.cnblogs.com/jixiaohua/p/11732225.html这个方法进行升级的。cuda版本是cuda11.2.

顺利安装cmake3和FFTW库,接下来安装GROMACS。在进行到cmake3 .. -DCMAKE_INSTALL_PREFIX这一步时报错


后来按照思想公社群友的提示,重新进行gcc升级操作,具体操作如下:
sudo yum install centos-release-scl-rh
sudo yum install devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-gcc-gfortran.x86_64
echo "source /opt/rh/devtoolset-8/enable" >> ~/.bashrc
source ~/.bashrc
再次cmake3 .. -DCMAKE_INSTALL_PREFIX这一步操作时依旧报错,提示如下,

CMake Error: Could not open file for write in copy operation /opt/soft/gromacs-2020.6/build/VersionInfo-partial.cmake.cmakein.tmp
CMake Error: : System Error: Permission denied
CMake Error at cmake/gmxVersionInfo.cmake:420 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:77 (include)

CMake Error: Could not open file for write in copy operation /opt/soft/gromacs-2020.6/build/DartConfiguration.tcl.tmp
CMake Error: : System Error: Permission denied
CMake Error at /usr/share/cmake3/Modules/CTestTargets.cmake:28 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/share/cmake3/Modules/CTest.cmake:266 (include)
  cmake/gmxCTestUtilities.cmake:52 (include)
  CMakeLists.txt:114 (gmx_ctest_init)


CMake Warning at cmake/gmxTestCompilerProblems.cmake:46 (message):
  The versions of the C and C++ compilers do not match (8.3.1 and 4.8.5,
  respectively).  Mixing different C/C++ compilers can cause problems.
Call Stack (most recent call first):
  CMakeLists.txt:345 (gmx_test_compiler_problems)

CMake Error at cmake/gmxTestCompilerProblems.cmake:72 (message):
  GCC version 5 or later required.  Earlier versions don't have full C++14
  support.
Call Stack (most recent call first):
  CMakeLists.txt:345 (gmx_test_compiler_problems)

-- Configuring incomplete, errors occurred!
See also "/opt/soft/gromacs-2020.6/build/CMakeFiles/CMakeOutput.log".
See also "/opt/soft/gromacs-2020.6/build/CMakeFiles/CMakeError.log".
CMake Error: Cannot open file for write: /opt/soft/gromacs-2020.6/build/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /opt/soft/gromacs-2020.6/build/CMakeCache.txt
CMake Error: : System Error: Permission denied
不知道这个问题要怎么解决?麻烦大家帮忙看看。

gcc version.jpg (208.21 KB, 下载次数 Times of downloads: 29)

gcc和g++版本

gcc和g++版本

Error.jpg (741.29 KB, 下载次数 Times of downloads: 33)

第一次cmake报错

第一次cmake报错

CMakeOutput.log

85.16 KB, 下载次数 Times of downloads: 0

CMakeError.log

2.77 KB, 下载次数 Times of downloads: 1

2425

帖子

1

威望

6196

eV
积分
8641

Level 6 (一方通行)

2#
发表于 Post on 2021-8-19 15:00:46 | 只看该作者 Only view this author
CMake Error: Cannot open file for write: /opt/soft/gromacs-2020.6/build/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /opt/soft/gromacs-2020.6/build/CMakeCache.txt
CMake Error: : System Error: Permission denied


看看这几行提示。
High-Performance Computing for You
为您专属定制的高性能计算解决方案

更多讯息,请访问:
https://labitc.top
http://tophpc.top:8080
电邮: ask@hpc4you.top

68

帖子

0

威望

2311

eV
积分
2379

Level 5 (御坂)

3#
 楼主 Author| 发表于 Post on 2021-8-19 16:42:10 | 只看该作者 Only view this author
abin 发表于 2021-8-19 15:00
CMake Error: Cannot open file for write: /opt/soft/gromacs-2020.6/build/CMakeCache.txt.tmp[/backcolo ...

好的,感谢。

本版积分规则 Credits rule

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

GMT+8, 2026-2-23 05:42 , Processed in 0.198736 second(s), 23 queries , Gzip On.

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