Compile and install MySQL 5.5 Based on Cmake

Source: Internet
Author: User

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

  • 1
  • 2
  • 3
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.