`PHP警告:PHP启动:无法加载动态库'mcrypt.so'

时间:2018-03-13 09:46:32

标签: php windows-subsystem-for-linux

我尝试在wsl ubuntu 16.04中运行此php -v但是得到了这个php警告

PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/lib/php/20170718/mcrypt.so (/usr/lib/php/20170718/mcrypt.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/mcrypt.so.so (/usr/lib/php/20170718/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

我使用谷歌搜索但我没有找到解决问题的直接答案。

如何处理

我在系统中安装了php

PHP 7.2.3-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Mar 6 2018 11:18:25) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.3-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

1 个答案:

答案 0 :(得分:0)

PHP 7.2 does not support mcrypt 您仍然可以install it作为非正式的PECL扩展