[英]How do I enable GMP on Mac OS X / PHP 7?
I'm using PHP 7 and Mac High Sierra. 我正在使用PHP 7和Mac High Sierra。 I'm trying to install and enable GMP.
我正在尝试安装并启用GMP。 I installed via
我通过安装
brew install homebrew/php/php70-gmp
but when I try and enable the module through the php.ini (/usr/local/etc/php/7.0/php.ini) file, I'm failing . 但是当我尝试通过php.ini(/usr/local/etc/php/7.0/php.ini)文件启用该模块时,我失败了。 I tried uncommenting the line
我尝试取消注释
extension=php_gmp.dll
but I get this error when running composer 但是在运行作曲家时出现此错误
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70/7.0.27_19/lib/php/extensions/no-debug-non-zts-20151012/php_gmp.dll' - dlopen(/usr/local/Cellar/php70/7.0.27_19/lib/php/extensions/no-debug-non-zts-20151012/php_gmp.dll, 9): image not found in Unknown on line 0
How do I enable GMP in my php.ini file? 如何在php.ini文件中启用GMP?
Using some .dll
file is not usual for a Mac system. 对于Mac系统,通常不使用某些
.dll
文件。 Can you have a look at the folder /usr/local/Cellar/php70/7.0.27_19/lib/php/extensions/no-debug-non-zts-20151012/
to see if there is any other GMP related file? 您能否查看一下
/usr/local/Cellar/php70/7.0.27_19/lib/php/extensions/no-debug-non-zts-20151012/
文件夹,看看是否还有其他与GMP相关的文件? Probably, you should add the extension through 可能您应该通过
extension=gmp.so
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.