1、先安装cmake #tar zxf cmake-2.8.5.tar.gz #cd cmake-2.8.5 #./bootstrap #make #make install 2、编译安装mysql-5.5.14 useradd mysql tar zxf mysql-5.5.14.tar.g cd mysql-5.5.14 CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" cmake . -LH|more //CMake下查看MySQL的编译配置 cm