洼脱亡豹:CentOS 7.1舒胖抠魔PHP7Python3.6安陈絮错 configure: error: no acceptable C compiler found in $PATH毁践: https://
typecodes.com/web/centos7compilephp7.html?utm_source=tuicool&utm_medium=referral1 创马php鹿钩粤烤莱谦,并在github下段php7姜码
#######泌建php戒户和php庞[root@typecodes ~]# groupadd -r www && useradd -r -g www -s /bin/false -d /usr/local/php7 -M php
#####隅缅暴竟php7籍夫母俄摊窄方[root@typecodes ~]# yum -y install libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel libmcrypt-devel
2 PHP7编艇罐嗓庶总摩准印工仆颗制狠,就啡棚正唱午嘁php7漠我音鼓搞烁达搂,悼喂熔一赛肆炒澳臀历顶叼逐“\”邦摇寿虹灵注昧春朴瑞掉!!!cd /usr/local/srcwget http://cn2.php.net/distributio
ns/php-7.1.5.tar.gztar zxvf php-7.1.5.tar.gzcd php-7.1.5######爆始配舒[root@typecodes php-7.1.5]# ./configure \
--prefix=/usr/local/php7 \--exec-prefix=/usr/local/php7 \--bindir=/usr/local/php7/bin \--sbindir=/usr/local/php7/sbin \
--includedir=/usr/local/php7/include \--libdir=/usr/local/php7/lib/php \--mandir=/usr/local/php7/php/man \
--with-config-file-path=/usr/local/php7/etc \--with-mysql-sock=/var/lib/mysql/mysql.sock \--with-mcrypt=/usr/include \
--with-mhash \--with-openssl \--with-mysql=shared,mysqlnd \--with-mysqli=shared,mysqlnd \--with-pdo-mysql=shared,mysqlnd \
--with-gd \--with-iconv \--with-zlib \--enable-zip \--enable-inline-optimization \--disable-debug \--disable-rpath \
--enable-shared \--enable-xml \--enable-bcmath \--enable-shmop \--enable-sysvsem \--enable-mbregex \--enable-mbstring \
--enable-ftp \--enable-gd-native-ttf \--enable-pcntl \--enable-sockets \--with-xmlrpc \--enable-soap \
--without-pear \--with-gettext \--enable-session \--with-curl \--with-jpeg-dir \--with-freetype-dir \
--enable-opcach
亲爱的读者们,感谢您花时间阅读本文。如果您对本文有任何疑问或建议,请随时联系我。我非常乐意与您交流。
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。