资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

安装php遇到一些常见问题-创新互联

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

创新互联公司始终坚持【策划先行,效果至上】的经营理念,通过多达10余年累计超上千家客户的网站建设总结了一套系统有效的全网推广解决方案,现已广泛运用于各行各业的客户,其中包括:成都木制凉亭等企业,备受客户称赞。

[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

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网站标题:安装php遇到一些常见问题-创新互联
网页URL:http://cdkjz.cn/article/dgegcp.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220