简体   繁体   English

如何安装旧版本的PHP libmcrypt?

[英]how to install an older version of PHP libmcrypt?

I need to use RC6 cipher for my project. 我需要在项目中使用RC6密码。 But, because the installed mcrypt library in my server is mcrypt version 2.5.8, so it's not support for RC6 cipher. 但是,由于我服务器中安装的mcrypt库是mcrypt版本2.5.8,因此它不支持RC6密码。 As wrote in http://www.php.net/manual/en/mcrypt.ciphers.php , RC6 128 bit cipher only supported by libmcrypt 2.2.x and 2.4.x. http://www.php.net/manual/en/mcrypt.ciphers.php中所述 ,RC6 128位密码仅受libmcrypt 2.2.x和2.4.x支持。

I have try to find how to install the mcrypt library version 2.2.x or 2.4.x, but i can't find it. 我试图找到如何安装mcrypt库版本2.2.x或2.4.x,但是我找不到它。

Does anybody know how to install this older version (libmcrypt 2.2.x or 2.2.4)?? 有人知道如何安装此旧版本(libmcrypt 2.2.x或2.2.4)吗?

this is the link to the 2.2.4 version: 这是2.2.4版本的链接:

ftp://195.134.99.74/pub/crypto/mcrypt/attic/libmcrypt/old/libmcrypt-2.2.4.tar.gz

remove your mycript: 删除您的mycript:

eg: remove php-mcrypt remove libmcrypt 例如:删除php-mcrypt删除libmcrypt

install from the new package: 从新软件包安装:

eg: 例如:

cd /usr/local/src
tar -zxvf libmcrypt-2.2.4.tar.gz
cd /usr/local/src/libmcrypt-2.2.4
./configure --prefix=/usr/local
make
make install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM