Mac OSX “Unable to load dynamic library ‘php_gd2.dll”

Mac更新后出现如下错误:

PHP Startup: Unable to load dynamic library 'php_gd2.dll' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_gd2.dll (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_gd2.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_gd2.dll), /usr/lib/php/extensions/no-debug-non-zts-20180731/php_gd2.dll.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_gd2.dll.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_gd2.dll.so)) in Unknown on line 0

没找到解决方案,直接在php.ini中注释掉这些行,不影响PHP正常运行。

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

%d 博主赞过: