要安装charmm程序,我必须安装CMake,但它不会安装CMake。
但是它并没有解决我的问题。 (而且我看到了cmake_bootstrap.log,但我不知道出了什么问题。)
(编辑) 谢谢大家!
操作系统版本:Linux theochem11.hpc.org 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue Nov 6 23:43:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[sohyeon@theochem11 cmake-3.15.3]$ gcc --version gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4) Copyright (C) 2010 Free Software Foundation, Inc. 这是自由软件; 请参阅源代码以获取复制条件。 没有保证; 甚至没有适合特定目的的适用性担保。
[sohyeon@theochem11 cmake-3.15.3]$ g++ --version g++ (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4) Copyright (C) 2010 Free Software Foundation, Inc. 这是自由软件; 请参阅源代码以获取复制条件。 没有保证; 甚至没有适合特定目的的适用性担保。
[sohyeon@theochem11 cmake-3.15.3]$ ./bootstrap
---------------------------------------------
CMake 3.15.3, Copyright 2000-2019 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
---------------------------------------------
Error when bootstrapping CMake:
Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.
Please specify one using environment variable CXX.
The C++ flags are "".
They can be changed using the environment variable CXXFLAGS.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /export/home/sohyeon/cmake-3.15.3/Bootstrap.cmk/cmake_bootstrap.log
所以我尝试运行那个脚本
[sohyeon@theochem11 cmake-3.15.3]$ env CC=cc CXX=CC ./bootstrap
但是仍然出现了相同的错误。
我在谷歌上搜索了其他方法,发现了这两种方式。
$ yum -y install gcc-c++
You need to be root to perform this command.
$ yum install gcc-c++.x86_64
You need to be root to perform this command.
但是它并没有解决我的问题。 (而且我看到了cmake_bootstrap.log,但我不知道出了什么问题。)
(编辑) 谢谢大家!
操作系统版本:Linux theochem11.hpc.org 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue Nov 6 23:43:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[sohyeon@theochem11 cmake-3.15.3]$ gcc --version gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4) Copyright (C) 2010 Free Software Foundation, Inc. 这是自由软件; 请参阅源代码以获取复制条件。 没有保证; 甚至没有适合特定目的的适用性担保。
[sohyeon@theochem11 cmake-3.15.3]$ g++ --version g++ (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4) Copyright (C) 2010 Free Software Foundation, Inc. 这是自由软件; 请参阅源代码以获取复制条件。 没有保证; 甚至没有适合特定目的的适用性担保。
$PATH
变量即可解决问题。 - Botje