wget https://pecl.php.net/get/mcrypt-1.0.3.tgz

tar -zxvf mcrypt-1.0.3.tgz

cd mcrypt-1.0.3

 

/usr/local/php73/bin/phpize

------------------------------------------

如果还是centos 6 会出现如下问题:

configure.ac:3: error: Autoconf version 2.68 or higher is required

操作步骤

wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz

tar zxvf autoconf-2.69.tar.gz

cd autoconf-2.69

./configure

make

make install 

-----------------------------------------

 

./configure  --with-php-config=/usr/local/php73/bin/php-config

make

make install

 

vim /usr/local/php73/etc/php.ini

文件最后加:

extension=mcrypt.so

 

/etc/init.d/php73-fpm stop

/etc/init.d/php73-fpm start

 

OK

 -------------------------------------------------

还是不要编译了,用remi 源更快更好。。。。

相关文章:

  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-25
  • 2021-11-11
  • 2021-08-28
  • 2021-06-25
  • 2022-02-23
  • 2022-12-23
相关资源
相似解决方案