【linux】centos 7 编译安装php7出错

wget -O php7.tar.gz http://cn2.php.net/get/php-7....
tar -zxvf php7.tar.gz
cd php-7.1.1

./configure \
--prefix=/usr/local/php \
--with-config-file-path=/usr/local/php/etc \
--with-config-file-scan-dir=/usr/local/php/conf.d \
--with-mysql=shared,mysqlnd \
--with-mysqli=shared,mysqlnd \
--with-pdo-mysql=shared,mysqlnd \
--with-iconv-dir \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-libxml-dir \
--enable-xml \
--enable-discard-path \
--enable-magic-quotes \
--enable-safe-mode \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--enable-fastcgi \
--enable-fpm \
--enable-force-cgi-redirect \
--enable-mbstring \
--with-mcrypt \
--enable-ftp \
--with-gd \
--enable-gd-native-ttf \
--with-mhash \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-zip \
--enable-soap \
--with-gettext \
--with-mime-magic
到这都没问题
运行后提示错误
【linux】centos 7 编译安装php7出错

请问如何解决

回答

楼主这里我给你一个博客,你看一下,http://blog.sina.com.cn/s/blo...
还有你可以查询一下错误日志

编译有困难就不要尝试了,有软件仓库安装,岂不美哉? https://www.vultr.com/docs/ho...

依赖没有解决好

yum install curl curl-devel -y

错误提示系统没有cURL库,可以尝试按照依赖:

yum install curl*

以上是 【linux】centos 7 编译安装php7出错 的全部内容, 来源链接: utcz.com/a/86618.html

回到顶部