The source code package compilation before Mysql5.5 adopts the make method, and cmake encoding method is adopted from 5.5. After obtaining the system, we can check whether the cmake package is installed in the system. If not, download a package from the official website. Is: bytes/
The source code package compilation before Mysql5.5 adopts the make method, and cmake encoding method is adopted from 5.5. After obtaining the system, we can check whether the cmake package is installed in the system. If not, download a package from the official website. For: http://www.cmake.org/cmake/resources/software.html
1. In cmake-2.8.7.tar.gz
2../configure -- prefix =/usr/local/cmake; make & make install;
3. ln-s/usr/local/cmake/bin/cmake
4.decompress mysql-5.5.20.tar.gz
Help: cmake.-LH (http://dev.mysql.com/doc/refman/5.5/en/source-configuration-options.html)
Cmake-DCMAKE_INSTALL_PREFIX =/data1/mysql558-DMYSQL_UNIX_ADDR =/tmp/mysql. sock-DDEFAULT_CHARSET = utf8-DDEFAULT_COLLATION = utf8_general_ci-DWITH_EXTRA_CHARSETS: STRING = all-round = 1-DWITH_INNOBASE_STORAGE_ENGINE = 1-DWITH_READLINE = 1-DENABLED_LOCAL_INFILE = 1-DMYSQL_DATADIR =/data1/mysqldata-DWITH_FEDERATED_STORAGE_ENGINE = on
Make & make install
The subsequent steps are as follows.
Note:
Clear the cache information of the old object file box during recompilation
Make clean
Rm-f CMakeCache.txt