php7.2.6??????????????????
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php7.2.6??????????????????相关的知识,希望对你有一定的参考价值。
?????????init.d evel code lxml iconv line ftp string soc
mkdir /tools && cd /tools && wget http://ftp.gnu.org/gnu/libiconv/libiconv-1.15.tar.gztar xf libiconv-1.15.tar.gz
cd libiconv-1.15
./configure --prefix=/usr/local/libiconv
make -j grep processor /proc/cpuinfo |wc -l
&& make install
yum install make gcc gcc-c++ zlib-devel libxml2-devel libxslt-devel libjpeg-turbo-devel freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel openssl-devel bzip2-devel gmp-devel libmcrypt-devel readline-devel mhash mcrypt openldap-devel -y
cd /tools && wget -O php-7.2.6.tar.gz http://cn2.php.net/get/php-7.2.6.tar.gz/from/this/mirror
tar xf /tools/php-7.2.6.tar.gz
cd /tools/php-7.2.6
./configure --prefix=/application/php7.2.6 --with-pdo-mysql=shared,mysqlnd --with-mysqli=shared,mysqlnd --with-iconv-dir=/usr/local/libiconv --with-freetype-dir --with-png-dir --with-jpeg-dir --with-zlib-dir --with-zlib --with-libxml-dir --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-sysvshm --enable-inline-optimization --with-curl --enable-mbregex --enable-fpm --enable-mbstring --with-gd --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-soap --enable-short-tags --enable-static --with-xsl --with-fpm-user=www --with-fpm-group=www --enable-ftp --enable-opcache --with-bz2 --with-gettext --with-libdir=lib64 --with-pcre-regex --with-pdo-sqlite --with-pear --enable-zip --with-ldap=shared --with-ldap-sasl --disable-debug --enable-shared --with-gettext --enable-session --without-gdbm --disable-fileinfo
make -j grep processor /proc/cpuinfo |wc -l
make install
ln -s /application/php7.2.6 /application/php
cp /tools/php-7.2.6/php.ini-production /application/php/lib/php.ini
cp /application/php/etc/php-fpm.conf.default /application/php/etc/php-fpm.conf
cp /application/php/etc/php-fpm.d/www.conf.default /application/php/etc/php-fpm.d/www.conf
cp /tools/php-7.2.6/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod +x /etc/init.d/php-fpm
echo ???/etc/init.d/php-fpm start??? >> /etc/rc.local
vim /application/php/lib/php.ini ????????????????????????#???
sed -i ???s/;extension=mysqli/extension=mysqli/g??? /application/php/lib/php.ini
/etc/init.d/php-fpm start
??????
??????make???????????????????????????
collect2: error: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1
vim Makefile :118???
EXTRA_LIBS = -lcrypt -lz -lexslt -lresolv -lcrypt -lrt -lpng -lz -ljpeg -lbz2 -lz -lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl -lssl -lcrypto -lcurl -lxml2 -lz -lm -ldl -lssl -lcrypto -lfreetype -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lcrypt -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxml2 -lz -lm -ldl -lxslt -lxml2 -lz -ldl -lm -lssl -lcrypto -lcrypt -liconv
以上是关于php7.2.6??????????????????的主要内容,如果未能解决你的问题,请参考以下文章