One of the important features of cmake is that it is independent from the out-of-source compilation function. That is, the compilation can be performed in another specified directory rather than the source directory, this ensures that the source code directory is not affected by any compilation. Therefore, different compilation operations can be performed on the same source code tree multiple times, such as compiling on different platforms.
1. Install cmake (mysql-5.5)
1. ensure the installation and development environment
Development Libraries
Development Tools
2. Required software packages
Cmake-2.8.8.tar.gz
Mysql-5.5.28.tar.gz
3. Synchronize the time before compilation.
[Root @ station45 ~] # Tar xf cmake-2.8.8.tar.gz
[Root @ station45 ~] # Cd cmake-2.8.8
[Root @ station45 cmake-2.8.8] #./configure
[Root @ station45 cmake-2.8.8] # make & make install
To clear the files generated by the previous compilation, run the following command:
Make clean
Rm CMakeCache.txt