您好,登錄后才能下訂單哦!
今天用centos6.5 安裝PHP,遇到了一些問題;之前在另外一個版本安裝都很順利,我懷疑系統(tǒng)版本有問題;
[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
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。