[英]CMake Error: The source directory “/home/name/Downloads” does not appear to contain CMakeLists.txt
I want to install Gromacs, and I've followed the steps from this site until the part where it tells me to enter this command:我想安装 Gromacs,我已经按照此站点的步骤操作,直到它告诉我输入此命令的部分:
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 sudo cmake .. -DGMX_BUILD_OWN_FFTW=OFF -DREGRESSIONTEST_DOWNLOAD=OFF -DCMAKE_C_COMPILER=gcc -DREGRESSIONTEST_PATH=“把你的密码路径放在这里没有引号”/下载/回归测试-5.1.1
Take note that I am in this directory:请注意,我在此目录中:
name@myname:~/Downloads/gromacs-5.1.1/build$ name@myname:~/Downloads/gromacs-5.1.1/build$
and this is what I entered in the terminal:这是我在终端中输入的内容:
sudo cmake .. -DGMX_BUILD_OWN_FFTW=OFF -DREGRESSIONTEST_DOWNLOAD=OFF -DCMAKE_C_COMPILER=gcc -DREGRESSIONTEST_PATH= /home/name/Downloads/regressiontests-5.1.1 sudo cmake .. -DGMX_BUILD_OWN_FFTW=OFF -DREGRESSIONTEST_DOWNLOAD=OFF -DCMAKE_C_COMPILER=gcc -DREGRESSIONTEST_PATH= /home/name/Downloads/regressiontests-5.1.1
but this error message appeared:但出现此错误消息:
CMake Error at CMakeLists.txt:55 (include): include could not find load file: CMakeLists.txt 中的 CMake 错误:55(包含):包含找不到加载文件:
gmxVersionInfo通用版本信息
CMake Error at CMakeLists.txt:64 (include): include could not find load file: CMakeLists.txt 中的 CMake 错误:64(包括):包含找不到加载文件:
gmxBuildTypeReference gmxBuildTypeReference
CMake Error at CMakeLists.txt:65 (include): include could not find load file: CMakeLists.txt 中的 CMake 错误:65(包含):包含找不到加载文件:
gmxBuildTypeProfile gmxBuildTypeProfile
CMake Error at CMakeLists.txt:66 (include): include could not find load file: CMakeLists.txt 中的 CMake 错误:66(包含):包含找不到加载文件:
gmxBuildTypeTSAN gmxBuildTypeTSAN
CMake Error at CMakeLists.txt:67 (include): include could not find load file: CMakeLists.txt 中的 CMake 错误:67(包括):包含找不到加载文件:
gmxBuildTypeASAN gmxBuildTypeASAN
CMake Error at CMakeLists.txt:68 (include): include could not find load file: CMakeLists.txt 中的 CMake 错误:68(包括):包含找不到加载文件:
gmxBuildTypeMSAN gmxBuildTypeMSAN
CMake Error at CMakeLists.txt:69 (include): include could not find load file: CMakeLists.txt:69 处的 CMake 错误(包括):包含找不到加载文件:
gmxBuildTypeReleaseWithAssert gmxBuildTypeReleaseWithAssert
CMake Error at CMakeLists.txt:101 (include): include could not find load file: CMakeLists.txt 中的 CMake 错误:101(包含):包含找不到加载文件:
gmxCPackUtilities gmxCPack 实用程序
CMake Error at CMakeLists.txt:102 (gmx_cpack_init): Unknown CMake command "gmx_cpack_init". CMakeLists.txt 中的 CMake 错误:102 (gmx_cpack_init):未知的 CMake 命令“gmx_cpack_init”。
-- Configuring incomplete, errors occurred! -- 配置不完整,出现错误! See also "/home/name/Downloads/gromacs-5.1.1/build/CMakeFiles/CMakeOutput.log".另见“/home/name/Downloads/gromacs-5.1.1/build/CMakeFiles/CMakeOutput.log”。
Please help!请帮忙!
You have a space between =
and /
here: -DREGRESSIONTEST_PATH= /home/name/Downloads/regressiontests-5.1.1
.您在=
和/
之间有一个空格: -DREGRESSIONTEST_PATH= /home/name/Downloads/regressiontests-5.1.1
。 Remove the space and it will work.删除空间,它将起作用。
In addition to @thomas_f answer, Make sure you put the pwd directory pointing to your regressiontests containing folder and the regressiontests version is correct or compatible with your gromacs version.除了@thomas_f 答案之外,请确保将 pwd 目录指向包含回归测试的文件夹,并且回归测试版本正确或与您的 gromacs 版本兼容。 Now gromacs 5.1.1 build in ubuntu 14.x and WSL ubuntu can be simplified by following the guide in this BioInformatic-Review .现在 gromacs 5.1.1 构建在 ubuntu 14.x 和 WSL ubuntu 中,可以按照此BioInformic-Review 中的指南进行简化。 I've successfully build gromacs 5.1.1 on WSL Ubuntu by following the guide.我已经按照指南在 WSL Ubuntu 上成功构建了 gromacs 5.1.1。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.