gpt4 book ai didi

php - 在 AMPPS 上启用 Xdebug 的问题

转载 作者:可可西里 更新时间:2023-11-01 00:08:51 24 4
gpt4 key购买 nike

我正在尝试在我的 AMPPS 上启用 Xdebug。我用过Xdebug并按照给定的说明进行操作:enter image description here .

在第 6 点,我运行 make 命令来编译 xdebug 库。然后检查是否一切顺利,我运行了 make test。我发现了这些错误:

    Failed loading ~/Dev/Testing/xdebug-2.2.6/modules/xdebug.so:  dlopen(~/Dev/Testing/xdebug-2.2.6/modules/xdebug.so, 9): no suitable image found.
Did find:
~wrong architecture
Failed loading ~/Dev/Testing/xdebug-2.2.6/modules/xdebug.so: dlopen(~/Dev/Testing/xdebug-2.2.6/modules/xdebug.so, 9): no suitable image found.
Did find:
~/Dev/Testing/xdebug-2.2.6/modules/xdebug.so: mach-o, but wrong architecture

我做错了什么……?这是安装/启用 Xdebug 的理想方式吗……?如果没有任何turorial..?

最佳答案

所以也许另一个可怜的人发现了这个,但我通过更改命令 ./configure 解决了这个问题:

./configure --enable-xdebug CC="gcc -arch i386"CXX="g++ -arch i386"

我在 PHP 5.6 上使用带有 Ampps 的 OS X El Capitan (10.11.5)。其他一切都与向导中提到的相同。

问题是 Ampps 是 32 位的,而当您make 时,您正在编译 64 位版本。

关于php - 在 AMPPS 上启用 Xdebug 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28070569/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com