|
|
谢谢老师的详细回答,您说的方法我都试了,目前是挂了梯子来下载(没挂梯子前也用这个方法自己下载过,然后上传到服务器)我主要是出现了两个问题:
1.安装dftd4,dftd4预编译都是没问题的,但是make就会报错,出现如下报错:
- f951: Warning: Nonexistent include directory ‘-I’ [-Wmissing-include-dirs]
- f951: Warning: Nonexistent include directory ‘-I/home/nemlab/Downloads/cp2k-2025.2/cp2k-2025.2/tools/toolchain/install/dbcsr-2.8.0/include’ [-Wmissing-include-dirs]
- /home/nemlab/Downloads/cp2k-2025.2/cp2k-2025.2/tools/build_utils/fypp -n --line-marker-format=gfortran5 /home/nemlab/Downloads/cp2k-2025.2/cp2k-2025.2/src/rpa_im_time_force_types.F rpa_im_time_force_types.F90
- /home/nemlab/Downloads/cp2k-2025.2/cp2k-2025.2/src/qs_dispersion_d4.F:47:7:
- 47 | USE dftd4, ONLY: d4_model, &
- | 1
- Fatal Error: Cannot open module file ‘dftd4.mod’ for reading at (1): No such file or directory
- compilation terminated.
- make[3]: *** [/home/nemlab/Downloads/cp2k-2025.2/cp2k-2025.2/Makefile:516: qs_dispersion_d4.o] Error 1
- make[3]: *** Waiting for unfinished jobs....
复制代码
另外,tblite里面是包含了dftd4,因为之前写 --with-tblite=install --with-dftd4=install 后toolchian不会安装dftd4,查了install_cp2k_toolchain.sh里面确实有这么一段:
- #tblite includes dftd4 - deactivate it
- if [ "${with_tblite}" != "__DONTUSE__" ]; then
- with_dftd4="__DONTUSE__"
- fi
复制代码
2.直接安装tblite,之前挂梯子预编译也经常报错,无法连接到https://aur.archlinux.org/packages/dftd4-git,(好像是被删了?)通过其他手段下载到本地再上传服务器对应文件夹似乎也没用,重新编译tblite,整个文件夹都会被重写。最后也不知道怎么解决的(可能梯子是换到阿美利卡就好了),突然就能连接上了,然后正常编译出来,到了make阶段又出现了如下报错:
- /home/nemlab/Downloads/cp2k-2025.2/cp2k-2025.2/src/tblite_types.F:17:7:
- 17 | USE mctc_io, ONLY: structure_type, new
- | 1
- Error: The rank of the element in the structure constructor at (1) does not match that of the component (0/1)
- /home/nemlab/Downloads/cp2k-2025.2/cp2k-2025.2/src/tblite_types.F:18:7:
- 18 | USE tblite_xtb_calculator, ONLY: xtb_calculator
- | 1
- Error: Invalid initialization expression for ALLOCATABLE component ‘repulsion’ in structure constructor at (1)
复制代码
现在是完全摸不着头脑,不知道是不是tblite包有问题还是怎么的
|
|