PHP编译遇到的问题
来源:互联网 发布:知乎 入门耳机 编辑:程序博客网 时间:2024/06/06 11:40
编译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
记住一点就好了:编译过程中出现错误不可怕,出现一个解决一个就好了。
本文出自 “xinsz08の平行时空” 博客,请务必保留此出处http://xinsz08.blog.51cto.com/10565212/1795763
- PHP编译遇到的问题
- CentOs 编译php 遇到的一些问题
- CentOs 编译php 遇到的一些问题
- php编译安装以及遇到的问题
- 编译支持Oracle的php时遇到的问题
- 编译支持Oracle的php时遇到的问题
- 编译安装php+apache中遇到的问题
- windows下编译php扩展遇到的问题
- 编译PHP中的扩展时遇到的问题及解决方法
- php编译安装pecl拓展遇到的问题
- 编译遇到的问题
- php/遇到的问题
- 网站编译遇到的问题
- Ogitor 编译遇到的问题
- 最近遇到的编译问题
- linux 编译遇到的问题
- 编译源码遇到的问题
- 编译ics遇到的问题
- 监控Linux性能的18个命令行工具
- 源码编译mysql报错解决
- [学习][poj2367]拓扑序 Genealogical tree
- PhP 常见安装错误configure error xml2-config not found. please check your libxml2 installation
- 初接触微信开发--页面跳转问题
- PHP编译遇到的问题
- JAVA使用爬虫抓取网站网页内容
- PHP编译,执行make报错
- 电脑启动流程
- Linux基础命令之计划任务
- Linux常用而且好玩的命令
- nagios监控服务器的搭建
- mysql基本知识学习
- Nginx服务安装与启动脚本配置