RPM installation packages are typically binary packages (binary) and source code packages (sources) in two forms. When using the source code to install MySQL, the official website download the source code package is usually the scr.rpm format, rather than the direct tar package, for this, you need to first use the RPM command to install the source code after the installation, the article is a description of the method.
1. Download the source package
http://mirrors.sohu.com/mysql/MySQL-5.6/
http://dev.mysql.com/downloads/mysql/
#环境
suse11:~ # cat/etc/issue
Welcome to SUSE Linux Enterprise Server one sp3 (x86_64)-Kernel \ R (\l) .
Suse11:/usr/local/src # RPM-IVH mysql-5.6.21-1.sles11.src.rpm
1:mysql ################################ ########### [100%]
#安装后, the source tar files are usually located in the/USR/SRC directory
#如下在/usr/src/packages/, added the specs and sources two directories
SUSE11:/USR/LOCAL/SRC # ls-hltr/usr/src/packages/
Total 20K
DRWXRWXRWT 2 root root 4.0K Apr SRPMS
DRWXRWXRWT 2 root root 4.0K Apr BUILD
DRWXRWXRWT 4 root root 4.0K 7 11:09 RPMS
Drwxr-xr-x 2 root root 4.0K Oct 14:31 SPECS
Drwxr-xr-x 2 root root 4.0K Oct 14:31 SOURCES
#如下, MySQL installation source file is mysql-5.6.21.tar.gz
SUSE11:/USR/LOCAL/SRC # Cd/usr/src/packages/sources
Suse11:/usr/src/packages/sources # ls
Mysql-5.6.21.tar.gz
#解压tar文件
Suse11:/usr/src/packages/sources # TAR-XVF Mysql-5.6.21.tar.gz
3, source installation MySQL
Reference: Linux under MySQL source installation full version
MySQL source scr.rpm Installation of a little note