编译php的时候遇到的问题:


编译代码:

./configure --prefix=/server/php-5.4-nginx --with-config-file-path=/server/php-5.4-nginx --with-mysql=/server/mysql-5.5/ --with-mysqli=/server/mysql-5.5/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring  --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets  --with-xmlrpc --enable-zip --enable-soap  --with-mcrypt=/usr/local/

报错信息:configure: error: Please reinstall the libcurl distribution -

    easy.h should be in <curl-dir>/include/curl/


解决办法:yum install curl-devel



再次编译报错:

configure: error: jpeglib.h not found.

解决方法:

检查之后发现已经安装了libjpeg

[root@localhost php-5.2.14]# yum list installed|grep libpng
libpng.x86_64           2:1.2.49-1.el6_2

或者:

[root@localhost php-5.2.14]# rpm -qa|grep libjpeg
libjpeg-turbo-1.2.1-3.el6_5.x86_64

如果没有安装则需要:

yum install libjpeg libpng freetype libjpeg-devel libpng-devel freetype-devel -y

若是64位系统
解决方法:
yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 -y

安装完后再安装libjpeg-devel

安装libjpeg-devel

yum -y install libjpeg-devel

记住一点就好了:编译过程中出现错误不可怕,出现一个解决一个就好了。


©著作权归作者所有:来自51CTO博客作者互联网老辛的原创作品,如需转载,请注明出处,否则将追究法律责任

更多相关文章

  1. 分布式监控系统Zabbix--完整安装记录 -添加apache监控
  2. OCI数据科学工作坊:机器视觉
  3. Centos安装jdk,mysql,spring nacos,redis,nginx等操作步骤
  4. open-falcon ---安装Dashboard时候报错
  5. Netdata---Linux系统性能实时监控平台部署记录
  6. VMware vSphere虚拟化-VMware ESXi 5.5组件安装过程记录
  7. linux下配置免安装版zabbix-agent配置详解
  8. Mysql Cluster7.4.6安装与配置
  9. 【静默】在RHEL 6.5上静默安装Oracle 18c

随机推荐

  1. EasyLoader(简单加载)实例
  2. bootstrap-multiselect 多选实例代码
  3. 详解可选参数和命名参数实例
  4. 分享一个IoC入门教程实例
  5. [转]Composite Keys With WebApi OData
  6. 总结EF通用数据层封装类实例详解
  7. [转]Support Composite Key in ASP.NET W
  8. 学习ASP.NET Core 2遇到的问题分享
  9. 使用ConcurrentDictionary多线程同步字典
  10. 浅谈WPF之Binding表达式