[MySQL] CMake Error: Internal CMake error, TryCompile configure of cmake failed
CentOS 6.3 に MySQL をソースコードからインストールするときに cmake エラーが発生したときの解決方法をご紹介します。
CMake エラーメッセージ
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Performing Test HAVE_PEERCRED - Failed Warning: Bison executable not found in PATH -- Configuring incomplete, errors occurred! |
CMake エラーその1
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage |
gcc-c++ をインストールすることで解決しました。
# yum -y install gcc-c++ |
CMake エラーその2
Warning: Bison executable not found in PATH |
Bison をインストールすることで解決しました。
# yum -y install bison |
以上です。