加载 xdebug 安装失败 - xdebug.so, 9 找不到合适的图像 [英] Failed-loading xdebug installation - xdebug.so, 9 no suitable image found

查看:49
本文介绍了加载 xdebug 安装失败 - xdebug.so, 9 找不到合适的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装xdebug扩展后如下

After installing xdebug extentions as follows

  • 下载 xdebug-2.6.0alpha1.tgz
  • 解压下载的文件
  • 运行:cd xdebug-2.6.0alpha1
  • 运行:phpize
  • 运行:./configure
  • 运行:make
  • 运行:cp modules/xdebug.so/usr/local/Cellar/php70/7.0.26_18/lib/php/extensions/no-debug-non-zts-20151012
  • 编辑/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

运行 php -v 时出现错误

I get the error when run 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

当我使用 Xdebug 分析 popinfo() 输出的服务时,它会要求完全相同的步骤去做.

When I use the service of Xdebug analyse popinfo() output, it will ask the exactly the same steps to do.

不确定没有找到合适的图像是什么意思.路径存在.任何人都可以有任何想法如何解决它?

It am not sure what no suitable image found means. The path exists. Could anyone have any ideas how to fix it?

推荐答案

我通过添加解决了问题

export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"

在 .bash_profile 上.

on .bash_profile.

PHP 7.1 随 OSX 10.13.2 一起提供,因此默认路径设置为预打包的 php,这会在 phpinfo 上显示错误.

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.

这篇关于加载 xdebug 安装失败 - xdebug.so, 9 找不到合适的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆