计算化学公社

 找回密码 Forget password
 注册 Register
楼主 Author: 冰释之川
打印 Print 上一主题 Last thread 下一主题 Next thread

[CP2K] 给老爷机离线安装CP2K-2022.2的笔记

  [复制链接 Copy URL]

1102

帖子

18

威望

6692

eV
积分
8154

Level 6 (一方通行)

計算化学の社畜

91#
 楼主 Author| 发表于 Post on 2024-3-8 15:57:36 | 只看该作者 Only view this author
Cara 发表于 2024-3-8 15:53
请教老师,安装gcc-9.3.0时,显示安装完成但是没有激活那一步需要的env.sh

往上翻一下,看看有没有报错信息
Stand on the shoulders of giants

24

帖子

0

威望

285

eV
积分
309

Level 3 能力者

92#
发表于 Post on 2024-3-8 16:13:04 | 只看该作者 Only view this author
冰释之川 发表于 2024-3-8 15:57
往上翻一下,看看有没有报错信息

抱歉老师,是我的问题,我没有仔细检查。文件夹命名混乱,在上一级目录发现了env.sh文件,问题解决了。

24

帖子

0

威望

285

eV
积分
309

Level 3 能力者

93#
发表于 Post on 2024-3-8 17:54:45 | 只看该作者 Only view this author
冰释之川 发表于 2024-3-8 15:57
往上翻一下,看看有没有报错信息

老师,请教一个新的问题,我在安装和激活gcc9.3.0之后,安装CP2K2024.1的依赖库时,报错C++ compiler cannot create executables。查看gcc版本好像和安装的9.3.0的版本不符合,请问这个问题可以如何解决?我的linux是release 7.9.2009

202403081753402111..png (12.37 KB, 下载次数 Times of downloads: 73)

gcc激活

gcc激活

202403081752123653..png (62.68 KB, 下载次数 Times of downloads: 68)

报错和gcc版本查询

报错和gcc版本查询

1102

帖子

18

威望

6692

eV
积分
8154

Level 6 (一方通行)

計算化学の社畜

94#
 楼主 Author| 发表于 Post on 2024-3-19 13:59:54 | 只看该作者 Only view this author
Cara 发表于 2024-3-8 17:54
老师,请教一个新的问题,我在安装和激活gcc9.3.0之后,安装CP2K2024.1的依赖库时,报错C++ compiler can ...

对CP2K2024.1编译前,先激活gcc9.3的环境,然后用gcc --version查看是否成功激活,成功激活后再继续编译
Stand on the shoulders of giants

43

帖子

0

威望

549

eV
积分
592

Level 4 (黑子)

95#
发表于 Post on 2024-4-13 15:01:07 | 只看该作者 Only view this author

./install_online_gcc_9.3.0.sh
这一步已经3个小时了还没结束正常吗?
事以密成,语以泄败

43

帖子

0

威望

549

eV
积分
592

Level 4 (黑子)

96#
发表于 Post on 2024-4-13 15:02:56 | 只看该作者 Only view this author
显示内容

202404131502338761..png (117.96 KB, 下载次数 Times of downloads: 74)

202404131502338761..png
事以密成,语以泄败

12

帖子

0

威望

243

eV
积分
255

Level 3 能力者

97#
发表于 Post on 2024-4-15 14:45:40 | 只看该作者 Only view this author
请问我编译gcc的时候出现了这个error 应该怎么解决呢

202404151445131078..png (258.04 KB, 下载次数 Times of downloads: 66)

202404151445131078..png

185

帖子

0

威望

2339

eV
积分
2524

Level 5 (御坂)

98#
发表于 Post on 2024-4-27 10:33:14 | 只看该作者 Only view this author
楼主测试了cp2k-2024.1么?我按照这个步骤第一步就开始报错

113

帖子

1

威望

1208

eV
积分
1341

Level 4 (黑子)

99#
发表于 Post on 2024-4-27 12:07:36 | 只看该作者 Only view this author
876449830 发表于 2024-4-27 10:33
楼主测试了cp2k-2024.1么?我按照这个步骤第一步就开始报错

无效发言,你好歹把你报的什么错发出来啊。

166

帖子

0

威望

3347

eV
积分
3513

Level 5 (御坂)

100#
发表于 Post on 2024-8-19 22:55:57 | 只看该作者 Only view this author
用install_gcc_9.3.0.sh 安装gcc-930的时候有报错,请问应该如何修改?


configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

######  Installation completed !  ######

4

帖子

0

威望

85

eV
积分
89

Level 2 能力者

101#
发表于 Post on 2024-12-26 11:06:13 | 只看该作者 Only view this author
请问老师,我已经完成了gcc的编译工作,并且在然后在toolchain文件夹中运行命令:
./install_cp2k_toolchain.sh --with-sirius=no --with-openmpi=install --with-plumed=install
并且安装了部分依赖,但是在安装libint-v2.6.0开始出现问题报错,具体如图所示。请问一下该如何解决

202412261106002628..png (66.93 KB, 下载次数 Times of downloads: 39)

202412261106002628..png

185

帖子

0

威望

2339

eV
积分
2524

Level 5 (御坂)

102#
发表于 Post on 2025-2-16 20:18:54 | 只看该作者 Only view this author
楼主,我按照帖子编译到CP2K本体这里,报错如下,这是为什么喔,还请大佬指点一下,谢谢

/sh3/ysuanbase/home/yeesuan14658/NBUT/app/CP2K/cp2k-2022.2/src/libint_wrapper.F:31:8:

   31 |    USE libint_f, ONLY: &
      |        1
Fatal Error: Cannot open module file 'libint_f.mod' for reading at (1): No such file or directory
compilation terminated.
make[3]: *** [libint_wrapper.o] Error 1
make[3]: *** Waiting for unfinished jobs....


make[3]: *** wait: No child processes.  Stop.
make[2]: *** [all] Error 2
make[1]: *** [ssmp] Error 2
make[1]: *** Waiting for unfinished jobs....
make[3]: *** wait: No child processes.  Stop.
make[2]: *** [all] Error 2
make[1]: *** [psmp] Error 2
make: *** [all] Error 2

3

帖子

0

威望

64

eV
积分
67

Level 2 能力者

103#
发表于 Post on 2025-5-30 09:28:29 | 只看该作者 Only view this author
Yuan老师好,按您的方法安装 CP2K2022.2。
(1)系统为Centos 7.9
(2)按提供的方法,安装了gcc-9.3.0
(3)  在进行此步时  ./install_cp2k_toolchain.sh --with-sirius=no --with-openmpi=install --with-plumed=install --with-gcc=system --with-intel=no
涉及软件包(cp2k-2022.2),均下载您提供的Baidu网盘。
在 cmake 部分出现 下面问题:
==================== Installing CMake ====================
cmake-3.22.1-linux-x86_64.sh is found
Installing from scratch into /opt/cp2k/cp2k-2022.2/tools/toolchain/install/cmake-3.22.1
CMake Installer Version: 3.22.1, Copyright (c) Kitware
This is a self-extracting archive.
The archive will be extracted to: /opt/cp2k/cp2k-2022.2/tools/toolchain/install/cmake-3.22.1

Using target directory: /opt/cp2k/cp2k-2022.2/tools/toolchain/install/cmake-3.22.1
Extracting, please wait...

gzip: stdin: invalid compressed data--format violated
pax: Tar file too small (amount: 0 bytes).
pax: Unexpected EOF on input.
pax: Cannot recover from error - exiting.
Problem unpacking the cmake-3.22.1-linux-x86_64
Step cmake took 0.00 seconds.

gzip,unzip等均有安装。袁老师,此问题怎样解决下?

3

帖子

0

威望

64

eV
积分
67

Level 2 能力者

104#
发表于 Post on 2025-5-30 09:30:49 | 只看该作者 Only view this author
sjzxbe 发表于 2025-5-30 09:28
Yuan老师好,按您的方法安装 CP2K2022.2。
(1)系统为Centos 7.9
(2)按提供的方法,安装了gcc-9.3.0

/bin/sh cmake-${cmake_ver}-${cmake_arch}.sh --prefix=${pkg_install_dir} --skip-license > install.log 2>&1 || tail -n ${LOG_LINES} install.log

属于未解压开,缺少什么程序呢?

3

帖子

0

威望

64

eV
积分
67

Level 2 能力者

105#
发表于 Post on 2025-5-30 10:20:26 | 只看该作者 Only view this author
# 删除损坏文件
rm -f cmake-3.22.1-linux-x86_64.sh
在linux下 从备用地址  https://cmake.org/files/v3.22/cmake-3.22.1-linux-x86_64.sh 下载后,可以正常使用了。,
也可能是原来从windows 下载,再复制到linux所致。

本版积分规则 Credits rule

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

GMT+8, 2025-8-13 15:20 , Processed in 3.075511 second(s), 28 queries , Gzip On.

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