Linux Download Install a source package

Source: Internet
Author: User

Download an installation package in addition to Yum and rpm we can also download the source package compiled and installed

First Download all the source package must go official website, in order to prevent the source package from being compiled by a third party

For example, today we install a httpd source package, which is often said Apache

First enter the official website apache.org

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/97/A1/wKioL1kwu5_wyGxAAADkDfEM_RE563.png "title=" 1rd.png "alt=" Wkiol1kwu5_wygxaaadkdfem_re563.png "/>

Go to download and select a download source

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/97/A1/wKioL1kwuxbhyT5pAAEAg6KR924948.png "style=" float : none; "title=" 2rd.png "alt=" Wkiol1kwuxbhyt5paaeag6kr924948.png "/>

Find httpd

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/97/9F/wKiom1kwuxeinGjXAAAvfJWDnq4887.png "style=" float : none; "title=" 3rd.png "alt=" Wkiom1kwuxeingjxaaavfjwdnq4887.png "/>

Click to download any one (right click Copy link address)

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/97/9F/wKiom1kwuxfCUUf9AAB2d2jU5gw443.png "style=" float : none; "title=" 4rd.png "alt=" Wkiom1kwuxfcuuf9aab2d2ju5gw443.png "/>

If you use wget download to find the following situation, the representative did not install the wget service, install it!

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/97/A1/wKioL1kwuxfTq5wMAAAQohsAS6w043.png "style=" float : none; "title=" 5d.png "alt=" Wkiol1kwuxftq5wmaaaqohsas6w043.png "/>

Download again

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/97/A1/wKioL1kwuxjTTqmxAAAw95qtaCc280.png "style=" float : none; "title=" 6rd.png "alt=" Wkiol1kwuxjttqmxaaaw95qtacc280.png "/>

Download complete

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/97/9F/wKiom1kwuxjCaIOtAAAKH-b_S2E336.png "style=" float : none; "title=" 7d.png "alt=" Wkiom1kwuxjcaiotaaakh-b_s2e336.png "/>

then in order to unify the management and use, we recommend that you develop a good habit of the download of the source package all on /USR/LOCAL/SRC under

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/97/A1/wKioL1kwuxmC61u6AAARmSSokXQ553.png "style=" float : none; "title=" 8d.png "alt=" Wkiol1kwuxmc61u6aaarmssokxq553.png "/>

Then unzip the source package

#tar-ZXVF httpd-2.4.25.tar.gz

Enter the httpd-2.4.25 directory when the decompression is complete

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/97/9F/wKiom1kwuxngKrIlAAA5O3NXklQ049.png "style=" float : none; "title=" 9d.png "alt=" Wkiom1kwuxngkrilaaa5o3nxklq049.png "/>

Then check out the two files for install and Reademe

Install: How to Mount

Reademe: Detail Introduction

#./configure--prefix=/usr/local/apache #编译源码包至 The/usr/local/apache/directory
#echo $? #查看是否成功--A return value of 0 means success!

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/97/9F/wKiom1kwuxmS2lNPAAAMDwXLLF8066.png "style=" float : none; "title=" 10d.png "alt=" Wkiom1kwuxms2lnpaaamdwxllf8066.png "/>

Sometimes 127 indicates no success and then repeats again

#./configure--prefix=/usr/local/apache
#make #调用gcc编译

Re-use

#echo $? To see the return value

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/97/A1/wKioL1kwuxqSzkRZAACLYxNqiJU875.png "style=" float : none; "title=" 11d.png "alt=" Wkiol1kwuxqszkrzaaclyxnqiju875.png "/>

#make Install #安装
#ls/usr/local/apache #查看安装后的apache目录

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/97/9F/wKiom1kwuxuiyHrgAAAM905IStE660.png "style=" float : none; "title=" 12d.png "alt=" Wkiom1kwuxuiyhrgaaam905iste660.png "/>


This article is from the "Old seven Linux Operations Management" blog, please be sure to keep this source http://asd9577.blog.51cto.com/4291946/1931534

Linux Download Install a source package

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.