源码编译php-5报错整理-创新互联

阿里云上 源码编译 php 报错的集中整理

肥城ssl适用于网站、小程序/APP、API接口等需要进行数据传输应用场景,ssl证书未来市场广阔!成为成都创新互联公司的ssl证书销售渠道,可以享受市场价格4-6折优惠!如果有意向欢迎电话联系或者加微信:028-86922220(备注:SSL证书合作)期待与您的合作!

[root@localhost php-5.5.31]#  ./configure --prefix=/module/application/php-5.5/--enable-pcntl --enable-fpm --enable-posix --enable-mysqlnd --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-bcmath --enable-zip --enable-ftp --enable-soap --enable-xml --enable-mbstring --disable-rpath --disable-debug --disable-fileinfo --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zend-vm=GOTO --with-pcre-regex --with-iconv --with-zlib --with-mcrypt --with-gd --enable-gd-native-ttf --with-t1lib=/usr/local --with-xpm-dir=/usr/local --with-jpeg-dir=/usr/local --with-zlib-dir=/usr --with-png-dir=/usr/local --with-freetype-dir=/usr/local --with-openssl --with-mhash --with-xmlrpc --with-curl --with-imap-ssl --with-libxml-dir --with-gettext --enable-maintainer-zts --enable-opcache

报错

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

解决方法

yum install ibxml2* -y  libxml2-devel

报错

configure: error: Please reinstall the libcurl distribution -

  easy.h should be in /include/curl/

解决方法

yum install libcurl* libcurl-devel -y

报错

configure: error: jpeglib.h not found.

解决方法

yum -y install libjpeg-devel

报错

checking for jpeg_read_header in -ljpeg... Yes  configure: error: png.h not found.

解决方法

yum install libpng-devel

报错

configure: error: xpm.h not found.

解决方法

yum -y install libXpm-devel

报错

configure: error: freetype-config not found

解决方法

yum install freetype-devel -y

报错

configure: error: Your t1lib distribution is not installed correctly. Please reinstall it

解决方法

yum install t1lib* -y

报错

configure: error: mcrypt.h not found. Please reinstall libmcrypt.

解决方法

 yum install mcrypt -y

 yum install libmcrypt libmcrypt-devel

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


分享题目:源码编译php-5报错整理-创新互联
转载来源:http://myzitong.com/article/cchcgc.html