php7依赖安装

装了很多很多次php

现在基本稳定下来了,把操作记录一下,下次直接一个脚本完事。。

yum install gcc g++
yum install autoconf
yum install openssl-devel openssl -y
yum install libxml2-devel  libxml2
yum install -y libcurl-devel curl libcurl pcre pcre-devel -y
yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 -y
yum -y install gmp-devel
yum -y install libjpeg-devel

./configure  --prefix=/usr/local/php-7.2.23 --with-config-file-path=/usr/local/php-7.2.23/etc --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --enable-zip --with-zlib --with-gd --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --with-curl --enable-mbstring  --disable-ipv6 --enable-static --enable-maintainer-zts --enable-sockets --enable-soap --enable-opcache --with-openssl --with-pdo-mysql=mysqlnd --enable-fpm --with-mysql=mysqlnd --with-mysql-sock --with-gmp --with-mysqli=mysqlnd


yum install libmemcached libmemcached-devel
yum install zlib zlib-devel
wget http://pecl.php.net/get/memcached-3.1.3.tgz

 

你可能感兴趣的:(document)