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正常运行。


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.