Introduction about the mysql-5.5.28 source code installation process in several major error summary, I hope this article to help you students.
System CentOS 6.3 Mini (without any compilation environment)
The precompiled environment first installed the well-known cmake (yum install cmake-y)
Copy Code code as follows:
,./bootstrap Error when bootstrapping cmake:cannot find appropriate C compiler on this system. Please specify one using environment variable CC. Cmake_bootstrap.log for compilers attempted.
Well, still not fully prepared, found that C compiler is not installed, that is, GCC, then put on (yum install gcc-y)
Copy Code code as follows:
CMake error:your CXX Compiler: "Cmake_cxx_compiler-notfound" is not found.
Well, this is a personal newly met mistake, looking for information everywhere, finally understand that there is a C + + compiler program is not installed, OK (yum install gcc-c++-y), and then found that CMakeCache.txt file has been generated. No way, delete (Rm-rf CMakeCache.txt) continue to compile!
Copy Code code 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 are Libncurses5-dev, on Redhat and derivates it is ncurses-devel.
Decisive and Meng, do not know where the problem, guess what bag is not installed it, and finally read on Debian/ubuntu, package the name is Libncurses5-dev, on Redhat and derivates it is ncurses-d Evel. These two sentences, OK installed ncurses-devel this bag (yum install ncurses-devel-y)
Warning:bison executable not found in PATH
Finally successful configuration succeeded, prompted a warning, can not let go, a check is missing bison, simple (yum install bison-y) installation solution! Then Make;make Install! Luckily, it's done!