网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

安装php遇到一些常见问题

今天用centos6.5 安装PHP,遇到了一些问题;之前在另外一个版本安装都很顺利,我怀疑系统版本有问题;

你所需要的网站建设服务,我们均能行业靠前的水平为你提供.标准是产品质量的保证,主要从事网站设计、成都网站建设企业网站建设、手机网站制作、网页设计、品牌网站建设、网页制作、做网站、建网站。创新互联建站拥有实力坚强的技术研发团队及素养的视觉设计专才。

[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 /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


名称栏目:安装php遇到一些常见问题
标题链接:http://bjjierui.cn/article/pcegpc.html

其他资讯