RPM installation packages are typically binary packages (binary) and source code packages (sources) in two forms.
When you install MySQL using source code, the source packages that are downloaded on the official site are usually in the scr.rpm format instead of the direct tar package. For this, you need to first install the source code with the RPM command before compiling the installation. This article is a descriptive narrative of the way.
1. Download the source code package
http://mirrors.sohu.com/mysql/MySQL-5.6/
http://dev.mysql.com/downloads/mysql/
2, install RPM
Span style= "COLOR: #006600" > #环境
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%]
#安装后. Tar files whose source code is typically located in the/usr/src folder
#例如以下在/usr/src/packages/, new specs and sources two folders
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 code installation MySQL
Reference: MySQL source code installation full version under Linux
MySQL source code scr.rpm installation Considerations