【发布时间】:2019-02-27 23:05:46
【问题描述】:
在 ubuntu18 上安装 nginx 和 php 7.2 服务器后,报错“The Encrypt library requires the Mcrypt extension.”它是一个 codeignitor 框架。
【问题讨论】:
在 ubuntu18 上安装 nginx 和 php 7.2 服务器后,报错“The Encrypt library requires the Mcrypt extension.”它是一个 codeignitor 框架。
【问题讨论】:
mcrypt 自 7.2 起已从 php 移至 pecl
您仍然可以安装它。
安装依赖
gcc make autoconf libc-dev pkg-config
install the lib itself
libmcrypt-dev 我假设已安装 php7.2 和 pecl,因此您只需使用 pecl 安装 mcrypt-1.0.1(或代表的任何版本)
pecl install mcrypt-1.0.1
【讨论】: