安裝php遇到一些常見問題

今天用centos6.5 安裝PHP,遇到了一些問題;之前在另外一個版本安裝都很順利,我懷疑系統(tǒng)版本有問題;

你所需要的網(wǎng)站建設(shè)服務(wù),我們均能行業(yè)靠前的水平為你提供.標(biāo)準(zhǔn)是產(chǎn)品質(zhì)量的保證,主要從事網(wǎng)站設(shè)計、成都網(wǎng)站建設(shè)企業(yè)網(wǎng)站建設(shè)、手機網(wǎng)站制作、網(wǎng)頁設(shè)計、品牌網(wǎng)站建設(shè)、網(wǎng)頁制作、做網(wǎng)站、建網(wǎng)站。創(chuàng)新互聯(lián)建站擁有實力堅強的技術(shù)研發(fā)團隊及素養(yǎng)的視覺設(shè)計專才。

[root@wiki2014 php-5.2.13]#  ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-MySQL=/usr/local/mysql/ --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql/ --enable-soap --with-gd --enable-sockets --enable-mbstring --disable-ipv6 --enable-exif --with-zlib --with-curl -with-curlwrappers --enable-calendar --with-gettext --enable-gd-native-ttf --enable-zend-multibyte --with-bz2  --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-libxml-dir

...............

第一遍

checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.

解決方法

[root@wiki2014 php-5.2.13]#yum -y install libxml2-devel

........................................

checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution

解決方法

[root@wiki2014 soft]# yum install bzip2 bzip2-devel

............

checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in <curl-dir>/include/curl/

[root@wiki2014 soft]# yum install curl curl-devel

...............

configure: error: libjpeg.(a|so) not found.

解決方法

[root@wiki2014 soft]# yum install libjpeg-devel

[root@wiki2014 soft]# ln -s /usr/lib64/libjpeg.so /usr/lib/libjpeg.so

...................

checking for jpeg_read_header in -ljpeg... yes
configure: error: libpng.(a|so) not found.

[root@wiki2014 soft]# locate libpng.so
/usr/lib64/libpng.so.3
/usr/lib64/libpng.so.3.49.0
/usr/lib64/compiz/libpng.so
[root@wiki2014 soft]# rpm -q libpng
libpng-1.2.49-1.el6_2.x86_64
[root@wiki2014 soft]# rpm -q libpng-devel
package libpng-devel is not installed

[root@wiki2014 soft]# yum install libpng-devel

[root@wiki2014 soft]# updatedb
[root@wiki2014 soft]# locate libpng.so
/usr/lib64/libpng.so
/usr/lib64/libpng.so.3
/usr/lib64/libpng.so.3.49.0
/usr/lib64/compiz/libpng.so

[root@wiki2014 usr]# ln -s /usr/lib64/libpng.so /usr/lib/libpng.so

.......................

configure: error: freetype.h not found.

[root@wiki2014 usr]# yum install freetype-devel

當(dāng)前文章:安裝php遇到一些常見問題
文章源于:http://bm7419.com/article32/pcegpc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站收錄、服務(wù)器托管小程序開發(fā)、App開發(fā)品牌網(wǎng)站設(shè)計、外貿(mào)建站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

手機網(wǎng)站建設(shè)