Introduction About mysql-5.5.28 source code installation process in a few major errors summary, I hope this article to help you.
CentOS 6.3 mini (no compiling environment)
The pre-compiled environment first installs the well-known cmake (yum install cmake-y)
Copy codeThe Code is as follows:
,./Bootstrap Error when bootstrapping CMake: Cannot find appropriate C compiler on this system. Please specify one using environment variable CC. See cmake_bootstrap.log for compilers attempted.
Okay, I am still not fully prepared. If I find that the c Compilation Program is not installed, that is, GCC, then install it (yum install gcc-y)
Copy codeThe Code is as follows:
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.
Well, this is a new personal error. I searched for the information and finally understood that there was another c ++ Compilation Program not installed, all right (yum install gcc-c ++-y.txt, then you will find that the cmakecache.txt file has been generated. No way, delete (rm-rf CMakeCache.txt) to continue compilation!
Copy codeThe Code is as follows:
CMake Error at cmake/readline. cmake: 82 (MESSAGE ):
Curses library not found. Please install appropriate package,
Remove CMakeCache.txt and rerun cmake. On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
Decisive and failed, do not know where the problem, guess what package is not installed, and finally understand On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel. in these two statements, OK installs the ncurses-devel package (yum install ncurses-devel-y)
Warning: Bison executable not found in PATH
After successful configuration, a warning is displayed, indicating that the Bison is missing. The yum install bison-y installation solution is simple! Then make; make install! Fortunately, it was successfully completed!