尝试安装xdebug:configure文件未找到


trying to install xdebug: configure file not found

我按照以下说明下载xdebug:http://xdebug.org/wizard.php.向导的输出是:

Summary
Xdebug installed: no
Server API: Apache 2.0 Handler
Windows: no
Zend Server: no
PHP Version: 5.4.17
Zend API nr: 220100525
PHP API nr: 20100525
Debug Build: no
Thread Safe Build: no
Configuration File Path: /bitnami/mampstack-osx-x64/output/php/lib
Configuration File: /Applications/mampstack-5.4.17-2/php/etc/php.ini
Extensions directory: /Applications/mampstack-5.4.17-2/php/lib/php/extensions

给出这些指令

  1. 下载xdebug-2.3.tgz
  2. 用tar-xvzf xdebug-2.2.2.3.tgz打开下载的文件
  3. 运行:cd xdebug-2.2.3运行:phpize(如果没有phpize,请参阅常见问题解答
  4. 运行:/配置

直到第4步,一切正常。在步骤#4中,我得到

MyMacBookAir$ ./configure
-bash: ./configure: No such file or directory

如果我查看xdebug-2.2.3,我会发现没有名为configure的文件,但我确实看到了名为config.in的文件。我得到的.tgz缺少配置文件了吗?还是我没有正确理解说明书的某些部分?

实际上这可能是phpize命令的问题如果它抱怨autoconf("找不到autoconf"),则尝试下一个

curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz
tar xzf autoconf-latest.tar.gz
cd autoconf-*
./configure --prefix=/usr/local
make
sudo make install

@akh2103我想你的问题现在已经解决了,但我把这个答案留给其他有这个问题的人。

我刚刚也遇到了同样的问题。对我来说,我把它安装在一个链接目录上

例如~/下载实际上在/media/1234/Data/Downloads 上

由于某种原因,前几天我把所有下载的内容转移到另一台硬盘上时,权限已经失控。

在我将最初的xdebug文件移动到~/.Desktop并在那里解压缩后,我运行了

chmod -R 0755 x-debug/

然后运行phpize

然后我可以看到配置文件,当我试图在我的另一个硬盘上做它时,它没有出现。

我希望这能帮助到其他遭受这个问题困扰的人。

John