前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >CentOS编译安装PHP7之史上最详细步骤。

CentOS编译安装PHP7之史上最详细步骤。

作者头像
sinnoo
发布2020-11-13 11:32:59
4150
发布2020-11-13 11:32:59
举报
文章被收录于专栏:技术人生

一、最详细的编译步骤

https://www.cnblogs.com/guiyishanren/p/11098506.html

二、编译过程常见的错误

https://blog.csdn.net/m0_38004619/article/details/88598702

三、一些配置的问题

1.PHP编译时的配置文件

代码语言:javascript
复制
./configure '--prefix=/usr/local/php7' '--with-pdo-pgsql' '--with-zlib-dir' '--with-freetype-dir' '--enable-mbstring' '--with-libxml-dir=/usr' '--enable-soap' '--enable-calendar' '--with-curl' '--with-mcrypt' '--with-gd' '--with-pgsql' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-zlib' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-pcntl' '--enable-mbregex' '--enable-exif' '--enable-bcmath' '--with-mhash' '--enable-zip' '--with-pcre-regex' '--with-pdo-mysql' '--with-mysqli' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--with-openssl' '--with-fpm-user=www-data' '--with-fpm-group=www-data' '--with-libdir=/lib/x86_64-linux-gnu/' '--enable-ftp' '--with-gettext' '--with-xmlrpc' '--with-xsl' '--enable-opcache' '--enable-fpm' '--with-iconv' '--with-xpm-dir=/usr'

2.报错checking for libzip... not found,configure: error: Please reinstall the libzip distribution

https://www.cnblogs.com/gyfluck/p/10478386.html

3.cmake升级(里面的下载地址不是唯一的,看好你需要哪个版本,自己寻找)

https://blog.csdn.net/weixin_38883338/article/details/86408749

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档