centos7下安装php7
2016-06-11 15:07
507 查看
大致的过程参考了这篇文章:点击打开链接
但因为具体环境的不同,在配置的时候遇到的实际问题不太一样。
在执行./configure xxxxxxxxxxxxxxxxx的时候遇到了各种缺失的包:
1. 缺少libxml2:
checking whether to enable LIBXML support... yes
checking libxml2 install dir... yes
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
yum安装:
# yum -y install libxml2 libxml2-devel
2. 缺少:
checking for cURL support... yes
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
yum安装:
# yum -y install curl curl-devel
3. 缺少jpeglib:
If configure fails try --with-webp-dir=<DIR>
configure: error: jpeglib.h not found.
yum安装:
# yum -y install gd gd-devel
4. 缺少mcrypt:
checking for mcrypt support... yes
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum安装报错,原因是centos的版权问题:
# yum install libmcrypt libmcrypt-devel
![](https://img-blog.csdn.net/20160611141456348?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
可以使用第三方源:
# wget http://www.atomicorp.com/installers/atomic
# sh ./atomic
然后继续用yum安装:
# yum install php-mcrypt libmcrypt libmcrypt-devel
5. 缺少xslt:
checking for XSL support... yes
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
yum安装:
# yum install libxslt-devel
./configure xxxxxxxxxxxxx配置成功后就可以执行
# make && make install
完成安装
但因为具体环境的不同,在配置的时候遇到的实际问题不太一样。
在执行./configure xxxxxxxxxxxxxxxxx的时候遇到了各种缺失的包:
1. 缺少libxml2:
checking whether to enable LIBXML support... yes
checking libxml2 install dir... yes
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
yum安装:
# yum -y install libxml2 libxml2-devel
2. 缺少:
checking for cURL support... yes
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
yum安装:
# yum -y install curl curl-devel
3. 缺少jpeglib:
If configure fails try --with-webp-dir=<DIR>
configure: error: jpeglib.h not found.
yum安装:
# yum -y install gd gd-devel
4. 缺少mcrypt:
checking for mcrypt support... yes
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum安装报错,原因是centos的版权问题:
# yum install libmcrypt libmcrypt-devel
可以使用第三方源:
# wget http://www.atomicorp.com/installers/atomic
# sh ./atomic
然后继续用yum安装:
# yum install php-mcrypt libmcrypt libmcrypt-devel
5. 缺少xslt:
checking for XSL support... yes
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
yum安装:
# yum install libxslt-devel
./configure xxxxxxxxxxxxx配置成功后就可以执行
# make && make install
完成安装
相关文章推荐
- Linux基础命令-echo、ls
- CentOS与win共用一个蓝牙鼠标
- linux命令常用命令
- Linux Top 命令解析
- Linux下which、whereis、locate、find 命令的区别
- linux下"没有设置 SVN_EDITOR...."错误解决方法
- linux下批量删除Thumbs.db文件
- CentOS下配置iptables防火墙
- centos安装svn
- linux select()详解( 四)-- Unix域字节流最简实例
- [置顶]在linux中连接wifi
- Linux修改用户所在组方法
- centos7的vsftpd的安装和配置
- Linux下的进程管理——task_struct
- Linux常见四种查找命令
- 基于linux平台的find命令
- linux文件的三种时间
- linux tar指令常用选项
- linux驱动程序中的异步编程
- 在 Linux 下你所不知道的 df 命令的那些功能