编译安装php-7.1.17及部分扩展

Posted 小刀

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了编译安装php-7.1.17及部分扩展相关的知识,希望对你有一定的参考价值。

Install php-7.1.17
./configure --prefix=/usr/local/php-7.1.17 --disable-debug --enable-shmop --with-gd --with-jpeg-dir=/usr/lib64 --with-png-dir=/usr/lib64 --with-li
bxml-dir=/usr/lib64 --with-zlib-dir=/usr/lib64 --with-mysqli=mysqlnd --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --enable-sockets --enable-mbst
ring --enable-mbregex --enable-ftp --enable-gd-native-ttf --enable-fpm  --enable-pcntl --enable-sysvmsg --enable-sysvsem  --enable-sysvshm  --ena
ble-zip  --with-curl=/usr/local/curl --with-iconv=/usr/local/libiconv --with-freetype-dir=/usr/local/freetype

Install php-7.1.17/ext/pdo_dblib
./configure --with-php-config=/usr/local/php-7.1/bin/php-config --with-pdo-dblib=/usr/local/freetds

Install php-7.1.17/ext/pdo_odbc
./configure --with-php-config=/usr/local/php-7.1/bin/php-config --with-pdo-odbc=unixODBC,/usr/local/unixODBC

Install php-7.1.17/ext/exif
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install php-7.1.17/ext/gettext
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install php-7.1.17/ext/bcmath
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install php-7.1.17/ext/ldap
cp -frp /usr/lib64/libldap* /usr/lib/
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install php-7.1.17/ext/soap
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install php-7.1.17/ext/openssl
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install mongodb-1.4.3
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install gearman-1.1.2
./configure --with-php-config=/usr/local/php-7.1/bin/php-config  
Install phpunit-5.7.4
Install zookeeper-0.4.0
./configure --with-php-config=/usr/local/php-7.1/bin/php-config --with-libzookeeper-dir=/usr/local/zookeeper
Install imagick-3.4.3
./configure --with-php-config=/usr/local/php-7.1/bin/php-config --with-imagick=/usr/local/ImageMagick
Install redis-4.0.1
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install mcrypt-1.0.1
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install xdebug-2.7.0alpha1
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install gmagick-2.0.5RC1
./configure --with-php-config=/usr/local/php-7.1/bin/php-config --with-gmagick=/usr/local/GraphicsMagick
Install pecl-memcache-NON_BLOCKING_IO_php7
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install memcached-3.0.4
./configure --with-php-config=/usr/local/php-7.1/bin/php-config --with-libmemcached-dir=/usr/local/libmemcached
Install phpng-xhprof-master
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install apcu-5.1.11
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 
Install yaf-3.0.7
./configure --with-php-config=/usr/local/php-7.1/bin/php-config 

  

以上是关于编译安装php-7.1.17及部分扩展的主要内容,如果未能解决你的问题,请参考以下文章

安装 PHP7

安装 PHP7

编译安装PHP7及扩展

Mongodb php扩展及安装

linux环境安装redis及扩展

CentOS下安装Redis及Redis的PHP扩展