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

心已入冬 提交于 2019-11-29 18:52:04

一、最详细的编译步骤

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

二、编译过程常见的错误

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

三、一些配置的问题

1.PHP编译时的配置文件

./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

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!