Php編譯安裝

來源:互聯網
上載者:User

標籤:blank   target   style   title   

Php編譯安裝

1.解壓縮php包

2.編譯參數

650) this.width=650;" title="wps3D95.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3D95.tmp" src="http://s3.51cto.com/wyfs02/M02/87/6B/wKioL1ffj8bz1TrNAAALKCoQxKw019.jpg" "244" height="24" />

./configure --prefix=/usr/local/lnm--witconfig-file-path=/usr/local/lnmp/php/etc --with-mysql --with-mysqli --with-pdo-mysql --enable-mysqlnd --with-openssl --with-snmp --with-gd --with-zlib --with-curl --with-libxml-dir --with-png-dir --with-jpeg-dir --with-freetype-dir –-without-pear --with-gettext --with-gmp --enable-inline-optimization --enable-soap --enable-ftp --enable-sockets --enable-mbstring --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --with-mcrypt –-with-mhash

3.出錯資訊匯總

a.

650) this.width=650;" title="wps3D96.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3D96.tmp" src="http://s3.51cto.com/wyfs02/M00/87/6F/wKiom1ffj8fCTYQXAAAWLoVRHFs200.jpg" "244" height="59" />

錯誤資訊的原因是因為寫的字母可能有問題,重新輸入一下

650) this.width=650;" title="wps3DA6.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DA6.tmp" src="http://s3.51cto.com/wyfs02/M02/87/6B/wKioL1ffj8igXuexAAAPRIQlLT4372.jpg" "244" height="41" />

解決辦法:

yum install -y libxml2-devel

b.

650) this.width=650;" title="wps3DA7.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DA7.tmp" src="http://s3.51cto.com/wyfs02/M01/87/6F/wKiom1ffj8jQstGhAAASKkkirQY371.jpg" "244" height="41" />

解決辦法:

yum install -y curl-devel

c.

650) this.width=650;" title="wps3DA8.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DA8.tmp" src="http://s3.51cto.com/wyfs02/M01/87/6B/wKioL1ffj8mB2m45AAAQOljFSTE957.jpg" "244" height="40" />

650) this.width=650;" title="wps3DA9.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DA9.tmp" src="http://s3.51cto.com/wyfs02/M02/87/6F/wKiom1ffj8rzuBLlAAAMZ35lZIM545.jpg" "244" height="36" />

解決辦法:

yum provides */jpeglib.h

yum install -y libjpeg-turbo-devel

650) this.width=650;" title="wps3DAA.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DAA.tmp" src="http://s3.51cto.com/wyfs02/M00/87/6F/wKiom1ffj8qxjP7SAAAXvwOJjW8980.jpg" "244" height="61" />

650) this.width=650;" title="wps3DAB.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DAB.tmp" src="http://s3.51cto.com/wyfs02/M02/87/6B/wKioL1ffj8vA1Hk7AAAbrdFzX-I311.jpg" "244" height="77" />

d.

650) this.width=650;" title="wps3DAC.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DAC.tmp" src="http://s3.51cto.com/wyfs02/M01/87/6F/wKiom1ffj8uw3tx7AAASX_0aKgk194.jpg" "244" height="43" />

解決辦法:

yum provides */png.h

yum install -y libpng-devel

650) this.width=650;" title="wps3DAD.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DAD.tmp" src="http://s3.51cto.com/wyfs02/M02/87/6F/wKiom1ffj8zDN5ZmAAAwCBepukM058.jpg" "244" height="140" />

650) this.width=650;" title="wps3DAE.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DAE.tmp" src="http://s3.51cto.com/wyfs02/M01/87/6B/wKioL1ffj82wVGhyAAAairbDv7E966.jpg" "244" height="69" />

e.

650) this.width=650;" title="wps3DAF.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DAF.tmp" src="http://s3.51cto.com/wyfs02/M01/87/6B/wKioL1ffj82QkH2fAAAYxTOHehw034.jpg" "244" height="45" />

解決辦法:

yum install -y freetype-devel

f.

650) this.width=650;" title="wps3DB0.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DB0.tmp" src="http://s3.51cto.com/wyfs02/M02/87/6B/wKioL1ffj86gAmaYAAAXRDYfOPI162.jpg" "244" height="53" />

解決辦法:

yum install -y gmp-devel

g.

650) this.width=650;" title="wps3DB1.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DB1.tmp" src="http://s3.51cto.com/wyfs02/M02/87/6B/wKioL1ffj86BMnTGAAATWgUhiR8900.jpg" "244" height="44" />

解決辦法:

650) this.width=650;" title="wps3DB2.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DB2.tmp" src="http://s3.51cto.com/wyfs02/M00/87/6B/wKioL1ffj8-QiDWVAAALc2Jl89o480.jpg" "244" height="32" />

可以看到在 yum中找不到這個包,所以只能從外部獲得

yum install -y libmcrypt-devel-2.5.8-9.el6.x86_64.rpm

yum install -y libmcrypt-2.5.8-9.el6.x86_64.rpm

h.

650) this.width=650;" title="wps3DB3.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="wps3DB3.tmp" src="http://s3.51cto.com/wyfs02/M01/87/6B/wKioL1ffj9DiY5vIAAAKueUz-qw477.jpg" "244" height="29" />

解決辦法:

yum install -y net-snmp-devel

4.至此,安裝完畢

與cmake不同,可以不用清除緩衝,直接再重新編譯就好。

650) this.width=650;" title="wps3DB4.tmp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="wps3DB4.tmp" src="http://s3.51cto.com/wyfs02/M00/87/6C/wKioL1ffj9Wgrh47AAA7-jNPRow501.jpg" "244" height="180" />

Php編譯安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.