产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请 担保单 免费安全、零费率交易平台编程助手免费智能写代码、翻译AMYSQL 免费MySQL管理工具

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[综合话题] php7.4与php8.0都安装不了mcrypt

ayoing
铁牌会员
6.00 价值分

ayoing 发表于 2021-05-01 12:17:30
php7.4与php8.0都安装不了mcrypt
checking for libmcrypt - version >= 2.5.0... no
*** Could not run libmcrypt test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding LIBMCRYPT or finding the wrong
*** version of LIBMCRYPT. If it is not finding LIBMCRYPT, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
configure: error: *** libmcrypt was not found
cp: cannot stat '/usr/local/lnmpv/extcode/mcrypt': No such file or directory
/root/amh/modules/mcrypt-1.0/admin-script/install_mcrypt: line 36: cd: /tmp/mcrypt: No such file or directory
Cannot find config.m4.
Make sure that you run '/usr/local/lnmpv/bin/phpize' in the top level source directory of the module

/root/amh/modules/mcrypt-1.0/admin-script/install_mcrypt: line 38: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
mv: cannot stat '/usr/local/lnmpv/lib/php/extensions/no-debug-non-zts-20200930/mcrypt.so': No such file or directory
2021-05-01 12:17:30 1

蓝浩
铜牌会员
672.93 价值分

百度的:解决方法如下:运行 export LD_LIBRARY_PATH=/usr/local/lib: LD_LIBRARY_PATH
然后make ; make install
完成


或者等4号官方上班后回复
  支持 (0分)  反对 (0分)
回复  2021-05-02 11:09:06 2

此用户很懒,未设置签名档!

magento
铝牌会员
421.26 价值分

这个应该和AMH无关吧。

是新版的PHP不支持mcrypt

改用sodium吧

两个都是一样负责加解密的..

很久前就有这个问题了,然后发现用sodium一样可以解密,就一直用sodium了。
  支持 (0分)  反对 (0分)
回复  2021-05-03 12:09:45 3

AMH棒棒哒

amysql
创始人
16530.81 价值分

引用:
magento 发表于 2021-05-03 12:09:45
这个应该和AMH无关吧。
是新版的PHP不支持mcrypt
改用sodium吧
两个都是一样负责加解密的..
很久前就有这个问题了,然后发现用sodium一样可以解密,就一直用sodium了。

对的,php7.2起已经移除mcrypt了,改用sodium。
  支持 (0分)  反对 (0分)
回复  2021-05-04 09:42:23 4

AMH面板 - 好用高效低占用、安全可靠极稳定

 1  (总1页)
AMH社区列表
用户服务中心