如何安装mcrypt PHP模块

问题描述 投票:0回答:1

我正在使用Linux Mint 19.1。我的PHP配置如下所示

enter image description here

当我尝试安装mcrypt时出现错误提示。

enter image description here

php linux installation mcrypt
1个回答
0
投票

尝试使用这些命令

要安装依赖项:

sudo apt-get -y install gcc make autoconf libc-dev pkg-config
sudo apt-get -y install php7.2-dev
sudo apt-get -y install libmcrypt-dev

一旦安装了依赖项,就可以使用以下命令安装mcrypt:

sudo pecl install mcrypt-1.0.1
© www.soinside.com 2019 - 2024. All rights reserved.