温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

源码编译php-5 报错整理

发布时间:2020-07-01 14:41:36 阅读:472 作者:水滴石川1 栏目:web开发
PHP开发者专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

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

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

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI

开发者交流群×