[MySQL] CMake Error: Internal CMake error, TryCompile configure of cmake failed

Tadashi Shigeoka ·  Wed, November 7, 2012

I’ll introduce the solution when a cmake error occurs while installing MySQL from source code on CentOS 6.3.

MySQL

CMake Error Message

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 Error 1

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

This was resolved by installing gcc-c++.

# yum -y install gcc-c++

CMake Error 2

Warning: Bison executable not found in PATH

This was resolved by installing Bison.

# yum -y install bison

That’s all from the Gemba.