cmake 2.6 인 centos 6.5를 사용하고 있습니다. 상위 버전 (cmake 2.8 또는 cmake 3.0)으로 업그레이드하고 싶습니다. 다운로드 한 설치 파일이 있습니다. 내가cmake를 2.6 이상으로 업그레이드 할 수 없습니다.
[[email protected] cmake-3.0.0]# ./configure
---------------------------------------------
CMake 3.0.0, Copyright 2000-2014 Kitware, Inc.
C compiler on this system is: gcc
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C++ compiler on this system.
Please specify one using environment variable CXX.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /home/sameet/Downloads/cmake-3.0.0/Bootstrap.cmk/cmake_bootstrap.log
내가 더 높은 버전으로 GCC를 업데이트 한 다음과 같은 오류 메시지를받을 ./configure를 사용하여 파일을 실행하고 난이 높은 버전
[[email protected] cmake-3.0.0]# gcc --version
gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[[email protected] cmake-3.0.0]# g++ --version
g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
을 유지하려는 경우 가 link가 답 비슷한 질문이지만 gcc를 이전 버전으로 되 돌리는 것처럼 "개발 도구"를 설치하고 싶지 않았습니다.
이 link은 비슷한 질문에 답하지만 패키지 관리자를 설치하지 않으려했습니다.
나는export CXX="/usr/bin/gcc"
그것은 작동하지 않았다으로 CXX에 대한 환경 변수를 설정하십시오.
gcc, g ++ 및 C++을 다시 설치하면 문제가 해결됩니다. 문제는 환경 변수가 제대로 설정되지 않아서라고 생각합니다. 어쨌든 고마워, –