php-7.3.6 编译安装过程
1.、安装编译工具及库文件(使用yum命令安装)
yuminstall-yapr*autoconfautomakebisonbzip2bzip2*cloog-pplcppcurlcurl-develfontconfigfontconfig-develfreetypefreetype*freetype-develgccgcc-c++gtk+-develgdgettextgettext-develglibckernelkernel-headerskeyutilskeyutils-libs-develkrb5-devellibcom_err-devellibpnglibpng-devellibjpeg*libsepol-devellibselinux-devellibstdc++-devellibtool*libgomplibxml2libxml2-devellibXpm*libxml*libXaw-devellibXmu-devellibtifflibtiff*makempfrncurses*ntpopensslopenssl-develpatchpcre-develperlphp-commonphp-gdpolicycoreutilstelnett1libt1lib*nasmnasm*wgetzlib-devel
2.安装 libzip扩展
wgethttps://nih.at/libzip/libzip-1.2.0.tar.gz tar-zxvflibzip-1.2.0.tar.gz cdlibzip-1.2.0 ./configure make makeinstall cp/usr/local/lib/libzip/include/zipconf.h/usr/local/include/zipconf.h
3.官网下载-下载3.6
wgethttp://cn2.php.net/distributions/php-7.3.3.tar.gz
编译安装扩展
cd/usr/local/src/ gitclonehttps://github.com/websupport-sk/pecl-memcache cdpecl-memcache/ /usr/local/php7/bin/phpize ./configure--with-php-config=/usr/local/php7/bin/php-config make&&makeinstall yuminstalllibmemcachedlibmemcached-devel-y cd/usr/local/src/ wgethttps://pecl.php.net/get/memcached-3.1.3.tgz tar-zxvfmemcached-3.1.3.tgz cdmemcached-3.1.3 /usr/local/php7/bin/phpize ./configure--with-php-config=/usr/local/php7/bin/php-config make&&makeinstall cd/usr/local/src/ wgethttps://pecl.php.net/get/redis-4.3.0.tgz tar-zxvfredis-4.3.0.tgz cdredis-4.3.0 /usr/local/php7/bin/phpize ./configure--with-php-config=/usr/local/php7/bin/php-config make&&makeinstall
安装mcrypt扩展
yuminstalllibmcryptlibmcrypt-develmcryptmhash-y cd/usr/local/src/ wgethttp://pecl.php.net/get/mcrypt-1.0.1.tgz tarxfmcrypt-1.0.1.tgz cdmcrypt-1.0.1 /usr/local/php7/bin/phpize ./configure--with-php-config=/usr/local/php7/bin/php-config&&make&&makeinstall
在php.ini加上扩展即可
extension=memcache.so extension=memcached.so extension=redis.so extension=mcrypt.so
总结
以上所述是小编给大家介绍的php-7.3.6编译安装过程,希望对大家有所帮助!
声明:本文内容来源于网络,版权归原作者所有,内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:czq8825#qq.com(发邮件时,请将#更换为@)进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。