MySQL source scr.rpm Installation of a little note

Source: Internet
Author: User

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

Related Article

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.