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