我已经mcrypt
通过成功安装,homebrew
但我很难找到将mcrypt.so
其作为扩展名包含在php.ini
.
mcrypt 安装在/usr/local/Cellar/mcrypt/2.5.8
. 树:
-- AUTHORS
|-- ChangeLog
|-- INSTALL_RECEIPT.json
|-- NEWS
|-- README
|-- TODO
|-- bin
| `-- libmcrypt-config
|-- include
| |-- mcrypt.h
| `-- mutils
| `-- mcrypt.h
|-- lib
| |-- libmcrypt.4.4.8.dylib
| |-- libmcrypt.4.dylib -> libmcrypt.4.4.8.dylib
| `-- libmcrypt.dylib -> libmcrypt.4.4.8.dylib
`-- share
|-- aclocal
| `-- libmcrypt.m4
`-- man
`-- man3
`-- mcrypt.3
我试图包括mcrypt.h
在php.ini
:
extension="/usr/local/Cellar/mcrypt/2.5.8/include/mcrypt.h"
然后重新启动apache。但它没有用。
当我在终端中运行 php 时,我得到:
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/Cellar/mcrypt/2.5.8/include/mcrypt.h' - dlopen(/usr/local/Cellar/mcrypt/2.5.8/include/mcrypt.h, 9):
image not found in Unknown on line 0