1. Install the necessary library files
Yum Install-y gcc*
2.yum Mounting Camke
Yum Install-y CMake
Compiling and installing CMake
Cd/usr/local/src
wget http://www.cmake.org/files/v2.8/cmake-2.8.7.tar.gz
Tar zxvf cmake-2.8.7.tar.gz
CD cmake-2.8.7
./configure
Make
Make install
3. Install MYSQL
Cd/usr/local/src
wget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.29.tar.gz
Groupadd MySQL
Useradd-g mysql-m-s/sbin/nologin MySQL
Tar zxf mysql-5.6.29.tar.gz
CD mysql-5.6.29
Cmake-dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/data/mysql-ddefault_charset=utf8-ddefault_ Collation=utf8_general_ci-dwith_extra_charsets:string=all-dwith_debug=0-dwith_ssl=yes-dwith_readline=1- Denabled_local_infile=1
Make && make install
Cd/usr/local/mysql
Chown-r Mysql:mysql/usr/local/mysql
./scripts/mysql_install_db--user=mysql-datadir=/data/mysql
CP SUPPORT-FILES/MY-DEFAULT.CNF/ETC/MY.CNF
CP Support-files/mysql.server/etc/init.d/mysqld
Bin/mysqld_safe--user=mysql &
/etc/init.d/mysqld start
Error 1:
-- could not find git (missing: git_executable)-- The C compiler identification is unknown-- the cxx compiler identification is unknowncmake error: your c compiler: "Cmake_c_compiler-notfound" was not found. Please set CMAKE_C_COMPILER to a valid Compiler path or name. cmake error: your cxx compiler: "Cmake_cxx_compiler-notfound" was not found. please set cmake_cxx_compiler to a valid compiler Path or name.
Solve:
--Could not find Git (missing:git_executable) This should be a lack of git package, yum install-y git
--The C compiler identification is unknown
--The CXX compiler identification is unknown these two missing gcc and gcc-c++ packages, yum install-y gcc gcc-c++
Error 2:
--Could not find Curses (missing:curses_library curses_include_path) CMake Error at cmake/readline.cmake:85 (MESSAGE): Curses Library not found. Please install the appropriate package, remove CMakeCache.txt and rerun CMake. On Debian/ubuntu, package name was Libncurses5-dev, on Redhat and derivates it was ncurses-devel. Call Stack (most recent call first): cmake/readline.cmake:128 (find_curses) cmake/readline.cmake:202 (mysql_use_bundled _editline) cmakelists.txt:409 (mysql_check_editline)--Configuring incomplete, Errors occurred!
Solve:
--Could not find Curses (missing:curses_library curses_include_path)
Missing Ncurses-devel package, yum install-y ncurses-devel
Delete CMakeCache.txt
File=find/-name CMakeCache.txt
Rm-f $file
Error 3:
Warning:bison executable not found in PATH
Solve :
Warning:bison executable not found in PATH missing Bison,yum install-y Bison
Compile and install mysql5.6.29 and install the error resolution method