MySQL source code scr.rpm installation Considerations

Source: Internet
Author: User

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

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.