我想安装 Gromacs,我已经按照 site 中的步骤进行操作直到它告诉我输入此命令的部分:
sudo cmake .. -DGMX_BUILD_OWN_FFTW=OFF -DREGRESSIONTEST_DOWNLOAD=OFF -DCMAKE_C_COMPILER=gcc -DREGRESSIONTEST_PATH= "PUT YOUR PWD PATH HERE WITHOUT QUOTES"/Downloads/regressiontests-5.1.1
请注意,我在此目录中:
name@myname:~/Downloads/gromacs-5.1.1/build$
这就是我在终端中输入的内容:
sudo cmake .. -DGMX_BUILD_OWN_FFTW=OFF -DREGRESSIONTEST_DOWNLOAD=OFF -DCMAKE_C_COMPILER=gcc -DREGRESSIONTEST_PATH= /home/name/Downloads/regressiontests-5.1.1
但是出现了这个错误信息:
CMake Error at CMakeLists.txt:55 (include): include could not find load file:
gmxVersionInfo
CMake Error at CMakeLists.txt:64 (include): include could not find load file:
gmxBuildTypeReference
CMake Error at CMakeLists.txt:65 (include): include could not find load file:
gmxBuildTypeProfile
CMake Error at CMakeLists.txt:66 (include): include could not find load file:
gmxBuildTypeTSAN
CMake Error at CMakeLists.txt:67 (include): include could not find load file:
gmxBuildTypeASAN
CMake Error at CMakeLists.txt:68 (include): include could not find load file:
gmxBuildTypeMSAN
CMake Error at CMakeLists.txt:69 (include): include could not find load file:
gmxBuildTypeReleaseWithAssert
CMake Error at CMakeLists.txt:101 (include): include could not find load file:
gmxCPackUtilities
CMake Error at CMakeLists.txt:102 (gmx_cpack_init): Unknown CMake command "gmx_cpack_init".
-- Configuring incomplete, errors occurred! See also "/home/name/Downloads/gromacs-5.1.1/build/CMakeFiles/CMakeOutput.log".
请帮忙!
最佳答案
=
之间有一个空格和 /
这里:-DREGRESSIONTEST_PATH= /home/name/Downloads/regressiontests-5.1.1
.删除空间,它将起作用。
关于ubuntu - CMake 错误 : The source directory "/home/name/Downloads" does not appear to contain CMakeLists. txt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49421640/