第一步安装cmake
1.cd rom
2.cd Packages/
3ls |grep cmake
4. rpm -ivh cmake-2.2+tab
第二步解压 mysql
1)tar zxvf mysql+tab键
2)cd mysql-5.5.17
3)mkdir /usr/local/mysql
4)mkdir /usr/mysql/data/
5)配置
cmake \
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql\
-DMYSQL_DATADIR=/usr/local/mysql/data \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci
报错的解决办法
rpm -ivh ncurses-devel-5.7-3