因为我正在尝试从PHP 7.2.X版本加载mcrypt扩展模块.
所以我尝试使用与我当前版本的PHP兼容的PECL库,以便安装并遵循以下链接:
在安装过程中在PHP 7.2上安装mcrypt!
以下是在终端上执行某些命令后获得的结果.
root@YYY:/var/www/html/orocrm# apt install php-pear
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libllvm4.0
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
php-pear
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
Need to get 285 kB of archives.
After this operation, 2,107 kB of additional disk space will be …Run Code Online (Sandbox Code Playgroud) 我正在安装新的kubuntu系统18.04,默认情况下使用的是php7.2
我当前软件项目的作曲家安装给我以下错误消息:
您的系统缺少所需的PHP扩展名ext-mcrypt *。安装或启用PHP的mcrypt扩展。
除了以前没有可用的php-mcrypt之外,其他类似http://aryo.lecture.ub.ac.id/easy-install-php-mcrypt-extension-on-ubuntu-linux/的文章也无济于事模拟php-mcrypt或php7-mcrypt不存在。
如何获得可以满足我的要求的设置?
sudo apt-get install php7.2-ext-mcrypt
Run Code Online (Sandbox Code Playgroud)
找不到安装候选对象。
php 7.1和7.2之间有区别吗?
毫不奇怪,这也不能解决问题:
$ 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
Run Code Online (Sandbox Code Playgroud)