centos7编译安装php7我遇到的错误
来源:互联网 发布:快速选择中值算法 编辑:程序博客网 时间:2024/06/03 05:31
关于php.ini
1、如果是rpm包安装的,默认配置文件是/etc/php.ini。
2、如果是源码包安装的,需要自己到源码包的目录下复制一个php.ini-development或者php.ini-production到php的配置文件所在目录,并改名为php.ini。
关于centos7安装php7请参考
http://blog.csdn.net/bravemelon/article/details/64925499
http://www.jianshu.com/p/246ffcd5e77d
http://www.jb51.net/article/109228.htm
错误1:Cannot find OpenSSL's <evp.h>
解决:yum install openssl openssl-devel
ln -s /usr/lib64/libssl.so /usr/lib/
错误2:configure: error: xml2-config not found. Please check your libxml2 installation.
解决:libxml2已经安装,还报这个错误,还需要安装libxml2-devel
错误3:error: Please reinstall the BZip2 distribution
解决:yum -y install bzip2-devel
错误4:checking for cURL in default path... not found
解决:yum -y install curl-devel
5:configure: error: jpeglib.h not found.
:yum -y install libjpeg-devel
6:configure: error: png.h not found.
:yum -y install libpng-devel
7:Configure: error: freetype.h not found.
:yum install freetype-devel
8:configure: error: Unable to locate gmp.h
:yum -y install gmp-devel
9:configure: error: mcrypt.h not found. Please reinstall libmcrypt.
:wget https://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
tar zxflibmcrypt-2.5.8.tar.gz
cdlibmcrypt-2.5.8
./configure
make && make install
10:configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no
:编辑 /etc/ld.so.conf 加入/usr/local/lib,在执行ldconfig。
这个比较麻烦,参考http://www.68idc.cn/help/jiabenmake/qita/2014022169481.html
11:configure: error: Please reinstall readline - I cannot find readline.h
:yum -y install readline-devel
12:configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
:yum -y install libxslt-devel
13:更多问题请参考http://www.bkjia.com/PHPjc/1008013.html
Thank you for using PHP.
linux装个php经历九九八十一难
- centos7编译安装php7我遇到的错误
- centos7 PHP7 编译、安装
- centos7 php7.1.2编译安装
- centos7编译安装php7.1
- Centos7上编译安装PHP7
- Centos7 安装 php7.0.16 遇到的一些问题
- CentOS7.3编译安装php7.1
- centos7 编译安装nginx php7 myssql
- centos7 下php+mysql+php7编译安装
- centos7(deepin)编译安装php7.1.11
- Centos7.2 编译安装PHP7.0.2
- 在centos7下编译安装php7
- 编译php7遇到的内存不足
- php7.1遇到的错误
- CentOS7 编译安装qbittorrent遇到的问题
- centos7 编译php7
- Centos7 安装 PHP7最新版的详细教程
- centOS7.2下编译扩展安装php7.0.8的GD库
- 航院5538:House Building
- esp8266烧写MicorPython
- android 使用httpURLConnection post方式访问接口的简单工具包
- Linux目录与文件的权限意义
- Android 实现沉浸式(使用SystemBarTint第三方)
- centos7编译安装php7我遇到的错误
- ES6之Iterator和for...of
- redis的list操作
- ipcs和ipcrm用法简介
- tensorflow for循环 while循环 实例
- 深入分析MySQL 的备份和恢复机制
- 第七周项目3-负数把正数赶出队列
- androidstudio 跳转页面时无法显示
- 第七周 项目5 -排队看病模拟