简体   繁体   English

使用XAMPP在Ubuntu上安装Xdebug for PHP

[英]Installing Xdebug for PHP on Ubuntu with XAMPP

I'm running XAMPP 1.7.3a on Ubuntu 9.10. 我在Ubuntu 9.10上运行XAMPP 1.7.3a。 With Netbeans 6.7.1 as my editor, I want to be able to debug my PHP sites. 使用Netbeans 6.7.1作为编辑器,我希望能够调试我的PHP站点。

To do this, I looked up Xdebug and started following the installation instructions, found here: http://xdebug.org/docs/install . 为此,我查找了Xdebug并按照安装说明开始操作,该说明位于: http : //xdebug.org/docs/install

Trying to compile the .tgz file, run in to a problem. 尝试编译.tgz文件时,遇到问题。

Step 3) I can execute that, but what use does it have? 步骤3)我可以执行该操作,但是它有什么用? I don't get the output or what I should do with it. 我没有得到输出或应该怎么做。

Step 4) I execute the following command: 步骤4)我执行以下命令:

./configure --enable-xdebug --with-php-config=/opt/lampp/etc/

At the bottom of the output, it says: configure: 在输出的底部,它说:configure:

error: Cannot find php-config. 错误:找不到php-config。 Please use --with-php-config=PATH 请使用--with-php-config = PATH

I've checked the location I entered, the php.ini file is there and so are all other config files. 我检查了我输入的位置,那里是php.ini文件,所有其他配置文件也是如此。

So, I'm not sure what to do now. 因此,我不确定现在该怎么办。 Should I ignore and just do the 'make' command, or does something else yet need to be done? 我应该忽略并仅执行“ make”命令,还是需要做其他事情?

您必须将路径传递给php config二进制文件-应该类似于

/opt/lampp/bin/php-config

All the binaries in XAMPP are located in XAMPP中的所有二进制文件都位于

/opt/lampp/bin

That's why if you work with XAMPP's PHP version you ought to proceed all operations using binaries from there. 这就是为什么如果您使用XAMPP的PHP版本,则应该使用那里的二进制文件进行所有操作。

For example, after installation of XAMPP it's possible to set path to it's PHP bin file . 例如,在安装XAMPP之后,可以设置其PHP bin文件的路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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