[email protected] rpm]# LL
Total 19148
-rw-r--r--1 root root 562628 Jan bison-2.3-2.1.x86_64.rpm
-rw-r--r--1 root root 7375 Jan bison-devel-2.3-2.1.x86_64.rpm
-rw-r--r--1 root root 3935585 Mar 4 gcc-c++-4.1.2-48.el5.x86_64.rpm
-rw-r--r--1 root root 11716 Mar 4 libaio-devel-0.3.106-5.x86_64.rpm
-rw-r--r--1 root root 481930 Apr 2 make-3.81-3.el5.x86_64.rpm
-rw-r--r--1 root root 1790863 Jan ncurses-devel-5.5-24.20060715.x86_64.rpm
-rw-r--r--1 root root 12771327 Jul perl-5.8.8-27.el5.x86_64.rpm
[Email protected] rpm]# RPM-IVH bison-2.3-2.1.x86_64.rpm
Warning:bison-2.3-2.1.x86_64.rpm:header V3 DSA Signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
Package bison-2.3-2.1.x86_64 is already installed
[Email protected] rpm]# RPM-IVH bison-devel-2.3-2.1.x86_64.rpm
Warning:bison-devel-2.3-2.1.x86_64.rpm:header V3 DSA Signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:bison-devel ########################################### [100%]
[Email protected] rpm]# RPM-IVH gcc-c++-4.1.2-48.el5.x86_64.rpm
Warning:gcc-c++-4.1.2-48.el5.x86_64.rpm:header V3 DSA Signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
Package gcc-c++-4.1.2-48.el5.x86_64 is already installed
[Email protected] rpm]# RPM-IVH libaio-devel-0.3.106-5.x86_64.rpm
Warning:libaio-devel-0.3.106-5.x86_64.rpm:header V3 DSA Signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:libaio-devel ########################################### [100%]
[Email protected] rpm]# RPM-IVH make-3.81-3.el5.x86_64.rpm
Warning:make-3.81-3.el5.x86_64.rpm:header V3 DSA Signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
Package make-3.81-3.el5.x86_64 is already installed
[Email protected] rpm]# RPM-IVH ncurses-devel-5.5-24.20060715.x86_64.rpm
Warning:ncurses-devel-5.5-24.20060715.x86_64.rpm:header V3 DSA Signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
Package ncurses-devel-5.5-24.20060715.x86_64 is already installed
[Email protected] rpm]# RPM-IVH perl-5.8.8-27.el5.x86_64.rpm
Warning:perl-5.8.8-27.el5.x86_64.rpm:header V3 DSA Signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
Package perl-5.8.8-27.el5.x86_64 is already installed
[Email protected] rpm]#
Mysql5.5 after the cmake to compile, cmake-2.8.12.2.tar.gz so need to download the installation
: http://www.cmake.org/cmake/resources/software.html
Tar zxvf cmake-2.8.7.tar.gz
CD cmake-2.8.12.2
./configure--prefix=/usr/local/cmake
Make && make install
[Email protected] rpm]# ll/usr/local/cmake/
Total 16
Drwxr-xr-x 2 root root 4096 June 12:37 bin
Drwxr-xr-x 3 root root 4096 June 12:37 doc
Drwxr-xr-x 3 root root 4096 June 12:37 man
Drwxr-xr-x 4 root root 4096 June 12:37 share
[Email protected] bin]# pwd
/usr/local/cmake/bin
[email protected] bin]# LL
Total 40060
-rwxr-xr-x 1 root root 9732202 June 12:36 Ccmake
-rwxr-xr-x 1 root root 9608089 June 12:36 CMake
-rwxr-xr-x 1 root root 10139179 June 12:36 Cpack
-rwxr-xr-x 1 root root 11467963 June 12:36 CTest
[Email protected] ~]# Vi. bash_profile
Add/usr/local/cmake/bin to environment variables
[[email protected] ~]# source. bash_profile
[[email protected] ~]# Groupadd MySQL
[Email protected] ~]# useradd-g mysql-s/sbin/nologin-m MySQL
[Email protected] percona-server-5.5.15-rel21.0]# tar zxf percona-server-5.5.15-rel21.0.tar.gz-c/usr/local/src/
[Email protected] percona-server-5.5.15-rel21.0]# pwd
/usr/local/src/percona-server-5.5.15-rel21.0
[[email protected] percona-server-5.5.15-rel21.0] #cmake \
-dcmake_install_prefix=/usr/local/mysql \
-DSYSCONFDIR=/ETC \
-dmysql_datadir=/var/lib/mysql \
-dmysql_unix_addr=/var/lib/mysql/mysql.sock \
-dmysql_user=mysql \
-dmysql_tcp_port=3306 \
-dwith_myisam_storage_engine=1 \
-dwith_innobase_storage_engine=1 \
-dwith_memory_storage_engine=1 \
-dwith_partition_storage_engine=1 \
-dextra_charsets=all \
-ddefault_charset=utf8 \
-DDEFAULT_COLLATION=UTF8_GENERAL_CI \
-denabled_local_infile=1 \
-dwith_readline=1
[[email protected] percona-server-5.5.15-rel21.0]# make && make install
[Email protected] mysql]# pwd
/usr/local/mysql
[email protected] mysql]# LL
Total 76
Drwxr-xr-x 2 root root 4096 June 12:57 bin
-rw-r--r--1 root root 17987 Jul COPYING
Drwxr-xr-x 4 root root 4096 June 12:57 data
Drwxr-xr-x 2 root root 4096 June 12:57 docs
Drwxr-xr-x 3 root root 4096 June 12:57 include
-rw-r--r--1 root root 7604 Jul install-binary
Drwxr-xr-x 3 root root 4096 June 12:57 Lib
Drwxr-xr-x 4 root root 4096 June 12:57 man
Drwxr-xr-x root root 4096 June 12:57 Mysql-test
-rw-r--r--1 root root 2552 Jul
Drwxr-xr-x 2 root root 4096 June 12:57 scripts
Drwxr-xr-x root root 4096 June 12:57 share
Drwxr-xr-x 4 root root 4096 June 12:57 Sql-bench
Drwxr-xr-x 2 root root 4096 June 12:57 Support-files
[Email protected] mysql]#
# cd/usr/local/mysql/
#./scripts/mysql_install_db--user=mysql--datadir=/var/lib/mysql
# CP Support-files/mysql.server/etc/init.d/mysqld
# chkconfig--add mysqld
# service MySQL Start
percona-server-5.5.15 Source Installation