源码编译php-5 报错整理
2016-06-02 13:43
615 查看
阿里云上 源码编译 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
[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
相关文章推荐
- 一个关于if else容易迷惑的问题
- PHP5.2.*防止Hash冲突拒绝服务攻击的Patch
- 深入理解PHP之匿名函数
- JSP/PHP基于Ajax的分页功能实现
- 关于PHP通过PDO用中文条件查询MySQL的问题。
- 什么是设计模式
- PHP数据库长连接mysql_pconnect的细节
- Php Installing An Expansion
- rem : web app适配的秘密武器
- jquery高级应用之Deferred对象
- php7 读取php.ini[4]
- 阿里云这群疯子
- PHP+Apache在Windows 9x下的安装和配置
- IIS 6 的 PHP 最佳配置方法
- 安装Apache和PHP的一些补充
- Linux Apache+MySQL+PHP
- 建立Apache+PHP+MySQL数据库驱动的动态网站
- PHP 5.3.0 安装分析心得
- apache 环境下 php 的配置注意事项