An example of problem solving in CentOS compiling and installing Percona Server 5.5.42

Source: Internet
Author: User

An example of problem solving in CentOS compiling and installing Percona Server 5.5.42

During this time, I wanted to compile and install Percona Server. I found many articles and made many preparations.

We tried both Ubuntu14.04, 12.04.1, CentOS5.11, and CentOS6.6 and found that

Cmake. -runtime =/myoa/mysql/-runtime = 1-runtime = 1-DEXTRA_CHARSETS = all-DDEFAULT_CHARSET = utf8-runtime = runtime-DWITH_DEBUG = 0-DBUILD_CONFIG = mysql_release-DFEATURE_SET = community -DWITH_EMBEDDED_SERVER = OFF

No problem during configuration

However, as long as make is used, an error occurs, and the problem lies in DTrace.

Baidu has found a lot of information and few materials

About Dtrace installation in linux

However, this problem was not mentioned during compilation and installation of percona on the Internet, and valuable articles about Dtrace could not be found on the Internet.

As long as the difference is found at 5.5.17

Finally, I found clues in an article.

Https://dev.mysql.com/doc/refman/5.6/en/source-configuration-options.html

You only need to add the cmake Parameter

-DENABLE_DTRACE = 0: make can be completed.

Strange to confirm

It seems that the latest version of percona server enables compilation for Dtrace by default.

Mysql in the standard version does not enable compilation.

This is why

In this case

The complete cmake parameter should be like this

Cmake. -runtime =/myoa/mysql/-runtime = 1-runtime = 1-DEXTRA_CHARSETS = all-DDEFAULT_CHARSET = utf8-runtime = runtime-DWITH_DEBUG = 0-DBUILD_CONFIG = mysql_release-DENABLE_DTRACE = 0 -DFEATURE_SET = community-DWITH_EMBEDDED_SERVER = OFF

We hereby record

Prevent forgetting again next time .....

The compilation dependency packages to be installed are provided.

LAMP

Yum install-y gcc-c ++ make autoconf wget ncurses-devel libmcrypt-devel libxml2-devel openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel openldap-devel libtool- ltdl-devel libevent-devel gd-devel bzip2-devel pcre-devel bison libaio-devel

Percona Server details: click here
Percona Server: click here

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.