如何 ubuntu 18.04 安装/激活 PHP 扩展 ext-mcrypt [英] Howto ubuntu 18.04 install / activate PHP extension ext-mcrypt

查看:45
本文介绍了如何 ubuntu 18.04 安装/激活 PHP 扩展 ext-mcrypt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在安装一个全新的 kubuntu 系统 18.04,默认使用 php7.2

I am installing a fresh kubuntu system 18.04, which is using by default php7.2

我当前软件项目的作曲家安装给我这个错误消息:

A composer install for my current software project gibves me this error message:

您的系统中缺少请求的 PHP 扩展 ext-mcrypt *.安装或启用 PHP 的 mcrypt 扩展.

The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP's mcrypt extension.

除了以前没有可用的 php-mcrypt 和其他类似的文章 http://aryo.lecture.ub.ac.id/easy-install-php-mcrypt-extension-on-ubuntu-linux/ 没有帮助,因为类似的 php-mcrypt 或 php7-mcrypt 不存在.

Other than before there is no php-mcrypt available and other articles like this http://aryo.lecture.ub.ac.id/easy-install-php-mcrypt-extension-on-ubuntu-linux/ don't help since an analog php-mcrypt or php7-mcrypt does not exists.

如何获得满足我要求的设置?

How can I get a setup, which fulfills my requirement?

sudo apt-get install php7.2-ext-mcrypt

未找到安装候选.

php 7.1 和 7.2 有区别吗?

Is there a difference between php 7.1 and 7.2?

毫不奇怪,这也不起作用:

not surprisingly this also does not do the trick:

$ sudo phpenmod mcrypt
WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available

推荐答案

所以看起来 mcrypt 在 php7.2 中被弃用了

So it looks like mcrypt is deprecated with php7.2

所以我要么必须在我的软件中替换它,要么遵循例如这个如何规避它:https://serverpilot.io/community/文章/how-to-install-the-php-mcrypt-extension.html

So I will either have to replace it in my software or follow e.g. this howto to circumvent it: https://serverpilot.io/community/articles/how-to-install-the-php-mcrypt-extension.html

这篇关于如何 ubuntu 18.04 安装/激活 PHP 扩展 ext-mcrypt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆