php 7.3.7安装Mcrypt扩展
分类:网站技术日期:2019-07-16 - 21:45:17评论:3条作者:老谢
又是闲来无事,把php 5.x升到了7.3.7,升级后明显感觉wp后台快多了,但是用tiny tiny rss的时候报错没有mcrypt函数,经过一番搜索,由于php7已经将此扩展移除到pecl,虽然不知道pecl是个啥,但目前要用到的mcrypt就需要手动安装了,顺手记录一下。
Autoconf的版本
rpm -qf /usr/bin/autoconf,如果低于2.68则需要升级,否则后面无法编译Mcrypt。
rpm -qf /usr/bin/autoconf rpm -e --nodeps autoconf-2.63 wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz tar zxvf autoconf-2.68.tar.gz cd autoconf-2.68 ./configure --prefix=/usr/ make && make install [root@laoxie mcrypt-1.0.1]# /usr/bin/autoconf -V autoconf (GNU Autoconf) 2.68 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David J. MacKenzie and Akim Demaille. |
开始搞Mcrypt
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/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config && make && make install |
编译完编辑php.ini,添加extension=mcrypt.so,然后重启php-fpm即可。
最新评论
zwwooooo:类似以前做网站开发时,一开始有自...
老陳网志:有点高端,像我们整点nas玩玩就够...
springwood:自从 CentOS 不维护之后,我换 U...
大D:难都搞下来了,那就更得YM了
大D:只能是YM了,谢总牛啊
灰常记忆:经济不好 今年我也换了机器 一...
大峰:这是海外服务器嘛?速度挺快的。
大D:只能单走一个6了哈哈哈
zwwooooo:买特斯拉和买iPhone的人群其实相似...
平安家属子痕:一直坚持油车,看你写的心里有...