Cmakeをyumコマンド、rpmコマンドを使わずにソースインストールしたいのですが、configureコマンドがエラーにより実行できません・・・。
gccは手動でインストールしました。
#環境
CentOS 6.9 gcc 8.2.0 cmake 3.13.1
#gcc/c++/g++
$ gcc -v 組み込み spec を使用しています。 COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper ターゲット: x86_64-pc-linux-gnu configure 設定: ../configure --enable-languages=c,c++ --prefix=/usr/local --disable-bootstrap --disable-multilib : (reconfigured) ../configure --enable-languages=c,c++ --prefix=/usr/local --disable-bootstrap --disable-multilib スレッドモデル: posix gcc バージョン 8.2.0 (GCC) $ g++ -v 組み込み spec を使用しています。 COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper ターゲット: x86_64-pc-linux-gnu configure 設定: ../configure --enable-languages=c,c++ --prefix=/usr/local --disable-bootstrap --disable-multilib : (reconfigured) ../configure --enable-languages=c,c++ --prefix=/usr/local --disable-bootstrap --disable-multilib スレッドモデル: posix gcc バージョン 8.2.0 (GCC) $ c++ -v 組み込み spec を使用しています。 COLLECT_GCC=c++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper ターゲット: x86_64-pc-linux-gnu configure 設定: ../configure --enable-languages=c,c++ --prefix=/usr/local --disable-bootstrap --disable-multilib : (reconfigured) ../configure --enable-languages=c,c++ --prefix=/usr/local --disable-bootstrap --disable-multilib スレッドモデル: posix gcc バージョン 8.2.0 (GCC)
#試したこと
$ sudo env CXX=/usr/local/bin/gcc CC=/usr/local/bin/gcc gcc=/usr/local/bin/gcc ./bootstrap
$ ./bootstrap
など・・・
#エラー
sudo ./configure --------------------------------------------- CMake 3.13.1, Copyright 2000-2018 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
gcc: エラー: unrecognized command line option ‘-qlanglvl=extended0x’ Test failed to compile (END)
なにか足りない依存パッケージがあるのでしょうか・・・。
よろしくお願い致します。
回答2件
あなたの回答
tips
プレビュー