[英]Failed-loading xdebug installation - xdebug.so, 9 no suitable image found
After installing xdebug extentions as follows 在安装xdebug扩展之后,如下所示
I get the error when run php -v 运行php -v时出现错误
Failed loading /usr/local/Cellar/php70/7.0.26_18/lib/php/extensions
/no-debug-non-zts-20151012/xdebug.so:
dlopen(/usr/local/Cellar/php70/7.0.26_18/lib/php/extensions
/no-debug-non-zts-20151012/xdebug.so, 9): no suitable image found.
Did find:
/usr/local/Cellar/php70/7.0.26_18/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so:
stat() failed with errno=20
When I use the service of Xdebug analyse popinfo() output, it will ask the exactly the same steps to do. 当我使用Xdebug的服务分析popinfo()输出时,它将要求执行完全相同的步骤。
It am not sure what no suitable image found means. 不确定找不到合适的图像意味着什么。 The path exists.
路径存在。 Could anyone have any ideas how to fix it?
谁能对解决这个问题有任何想法?
I sorted the problem out by adding 我通过添加来解决问题
export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"
on .bash_profile. 在.bash_profile上。
PHP 7.1 came with OSX 10.13.2, so default path was set to the pre-packed php, which shows the error on phpinfo. PHP 7.1随OSX 10.13.2一起提供,因此默认路径设置为预打包的php,这显示了phpinfo上的错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.