php-7.3.6 编译安装过程
1.、安装编译工具及库文件(使用yum命令安装)
yum install -y apr* autoconf automake bison bzip2 bzip2* cloog-ppl cpp curl curl-devel fontconfig fontconfig-devel freetype freetype* freetype-devel gcc gcc-c++ gtk+-devel gd gettext gettext-devel glibc kernel kernel-headers keyutils keyutils-libs-devel krb5-devel libcom_err-devel libpng libpng-devel libjpeg* libsepol-devel libselinux-devel libstdc++-devel libtool* libgomp libxml2 libxml2-devel libxpm* libxml* libxaw-devel libxmu-devel libtiff libtiff* make mpfr ncurses* ntp openssl openssl-devel patch pcre-devel perl php-common php-gd policycoreutils telnet t1lib t1lib* nasm nasm* wget zlib-devel
2.安装 libzip 扩展
wget https://nih.at/libzip/libzip-1.2.0.tar.gz tar -zxvf libzip-1.2.0.tar.gz cd libzip-1.2.0 ./configure make make install cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h
3. 官网下载-下载3.6
wget
编译安装 扩展
cd /usr/local/src/ git clone https://github.com/websupport-sk/pecl-memcache cd pecl-memcache/ /usr/local/php7/bin/phpize ./configure --with-php-config=/usr/local/php7/bin/php-config make && make install yum install libmemcached libmemcached-devel -y cd /usr/local/src/ wget https://pecl.php.net/get/memcached-3.1.3.tgz tar -zxvf memcached-3.1.3.tgz cd memcached-3.1.3 /usr/local/php7/bin/phpize ./configure --with-php-config=/usr/local/php7/bin/php-config make && make install cd /usr/local/src/ wget https://pecl.php.net/get/redis-4.3.0.tgz tar -zxvf redis-4.3.0.tgz cd redis-4.3.0 /usr/local/php7/bin/phpize ./configure --with-php-config=/usr/local/php7/bin/php-config make && make install
安装 mcrypt扩展
yum install libmcrypt libmcrypt-devel mcrypt mhash -y cd /usr/local/src/ wget http://pecl.php.net/get/mcrypt-1.0.1.tgz tar xf mcrypt-1.0.1.tgz cd mcrypt-1.0.1 /usr/local/php7/bin/phpize ./configure --with-php-config=/usr/local/php7/bin/php-config && make && make install
在php.ini加上扩展即可
extension=memcache.so extension=memcached.so extension=redis.so extension=mcrypt.so
总结
以上所述是小编给大家介绍的php-7.3.6 编译安装过程,希望对大家有所帮助!
上一篇: Java数学工具类MathUtil详解
下一篇: 详解Vue使用命令行搭建单页面应用
推荐阅读
-
Redis 介绍及编译安装单机
-
Tengine 212 编译安装 tengine怎么读 tengine php tengine 2.1.1
-
编译安装PHP出现configure: error: mysql configure failed. Plea_PHP教程
-
Centos6.5 编译安装mysql 5.6.16 详细教程
-
Oracle RAC之--安装过程中碰到的问题及解决方法
-
mysql一键安装教程 mysql5.1.45全自动安装(编译安装)
-
Linux下MySQL 5.5.8 源码编译安装记录分享
-
CentOS 5.5下安装MySQL 5.5全过程分享
-
各种Python库安装包下载地址与安装过程详细介绍(Windows版)
-
Centos6.5编译安装mysql 5.7.14详细教程