PHP5.2.4安裝中出現問題及處理過程

hq181msn發表於2008-04-02

安裝PHP5.2.4中出現問題彙總:

configure: error: libpng.(a|so) not found.
configure: error: png.h not found
If configure fails try --with-xpm-dir=


configure: error: freetype.h not found.
If configure fails try --with-xpm-dir=
checking for FT_New_Face in -lfreetype... no
configure: error: Problem with freetype.(a|so). Please check config.log for more information.

Notice: Following unknown configure options were used:

--with-png
--with-xml

[@more@]

安裝PHP5.2.4中出現問題彙總:

configure: error: libpng.(a|so) not found.
configure: error: png.h not found
If configure fails try --with-xpm-dir=


configure: error: freetype.h not found.
If configure fails try --with-xpm-dir=
checking for FT_New_Face in -lfreetype... no
configure: error: Problem with freetype.(a|so). Please check config.log for more information.

Notice: Following unknown configure options were used:

--with-png
--with-xml

#########################################

出現以上問題主要是由於在使用

#rpm -e --nodeps httpd
#rpm -e --nodeps php
#rpm -e --nodeps mysql

做強制刪除時將相關聯的程式給強制刪除了,才會出現在安裝php時的報錯,建議最好慎用該方式;

打上以下相關的RPM包可以解決在./configure 時的報錯:

freetype-devel-2.1.9-1.i386.rpm
gd-devel-2.0.28-4.i386.rpm
httpd-2.0.52-9.ent.i386.rpm
libjpeg-6b-33.i386.rpm
libjpeg-devel-6b-33.i386.rpm
libpng10-devel-1.0.16-1.i386.rpm
libpng-1.2.7-1.i386.rpm
libpng-devel-1.2.7-1.i386.rpm

rpm -ivh libpng-devel-1.2.7-1.i386.rpm
###################################

建議大家在刪除前後用進行檢查環境

#rpm -q -a|grep -i freetype
#rpm -q -a|grep -i gd-
#rpm -q -a|grep -i libjpeg
#rpm -q -a|grep -i ibpng

在AS4下相關包體必須有如下:

freetype-devel-2.1.9-1
freetype-2.1.9-1
gd-2.0.28-4
gd-devel-2.0.28-4
libjpeg-devel-6b-33
libjpeg-6b-33
libpng10-1.0.16-1
libpng-devel-1.2.7-1
libpng-1.2.7-1
libpng10-devel-1.0.16-1

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/216109/viewspace-1001795/,如需轉載,請註明出處,否則將追究法律責任。

相關文章