简体   繁体   English

未能成功加载xdebug安装-xdebug.so,没有找到9个合适的映像

[英]Failed-loading xdebug installation - xdebug.so, 9 no suitable image found

After installing xdebug extentions as follows 在安装xdebug扩展之后,如下所示

  • Download xdebug-2.6.0alpha1.tgz 下载xdebug-2.6.0alpha1.tgz
  • Unpack the downloaded file 解压缩下载的文件
  • Run: cd xdebug-2.6.0alpha1 运行:cd xdebug-2.6.0alpha1
  • Run: phpize 运行:phpize
  • Run: ./configure 运行:./ configure
  • Run: make 运行:make
  • Run: cp modules/xdebug.so /usr/local/Cellar/php70/7.0.26_18/lib/php/extensions/no-debug-non-zts-20151012 运行:cp modules / xdebug.so /usr/local/Cellar/php70/7.0.26_18/lib/php/extensions/no-debug-non-zts-20151012
  • Edit /usr/local/etc/php/7.0/php.ini and add the line zend_extension = /usr/local/Cellar/php70/7.0.26_18/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so 编辑/usr/local/etc/php/7.0/php.ini并添加zend_extension = /usr/local/Cellar/php70/7.0.26_18/lib/php/extensions/no-debug-non-zts-20151012/ xdebug.so

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM