标签:
1、编辑脚本cmake_mysql_install.sh,输入以下内容:
#!/bin/bash
#下载并安装make
yum-y install gcc #排除错误:configure: error: in `/usr/local/src/make-4.1‘: configure: error: no acceptable C compiler found in $PATH
cd /usr/local/src/wget http://ftp.gnu.org/gnu/make/make-4.1.tar.gz
tar zxvf make-4.1.tar.gz
cd make-4.1./configure
make&&make install
#下载并安装bison
cd/usr/local/src/wget http://alpha.gnu.org/gnu/bison/bison-2.7.91.tar.gz
tar zxvf bison-2.7.91.tar.gz
cd bison-2.7.91./configure
make&&make install
#安装gcc-c++yum-y install gcc-c++#下载并解压camke
cd/usr/local/src/wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gztar zxvf cmake-3.2.2.tar.gz
cd cmake-3.2.2./bootstrap
gmake && gmake install
#下载安装ncurses
cd/usr/local/src/wget http://ftp.gnu