产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请编程助手免费智能写代码、翻译NewAMYSQL 免费MySQL管理工具AMFTP 免费FTP管理客户端

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
评价: 这个话题有价值吗?  没有 (0分)   有, 感谢 (0分)
2021-05-01 12:17:30 1

蓝浩
铜牌会员
558.90 价值分

百度的:解决方法如下:运行 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
创始人
99530.04 价值分

引用:
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社区列表
用户服务中心