我有很大的麻烦安装xdebug并让它与我的灯安装工作。我在一个Ubuntu系统上,我通过sudo apt-get install php-xdebug
安装了xdebug。安装xdebug for lamp
我也有一个独立的php二进制文件,为此xdebug自动安装好。我找到了xdebug.so,并在我的lamp/etc/php.ini
中添加了zend_extension=path/to/xdebug.so
。然而,我得到了一个错误
wrong ELF class: ELFCLASS64
这可能意味着我的灯运行在不同的位模式比我独立的php。
但是我去了xdebug.com并下载了源代码。随后在手动安装提到的步骤:
/opt/lamp/bin/phpize
./configure --enable-xdebug --with-php-config=/opt/lampp/bin/php-config
make
(第一次phpize抱怨缺少autoconf的,所以我也安装autoconf的)。
然后运行make
当我再次跑进follwing错误
fatal error: php.h: file or directory not found
而且phpize有一些警告,也没有打印这可能与任何API的数字。
grep: [path]/php.h: Datei oder Verzeichnis nicht gefunden
grep: [path]/Zend/zend_modules.h: Datei oder Verzeichnis nicht gefunden
grep: [path]/Zend/zend_extensions.h: Datei oder Verzeichnis nicht gefunden
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
无论如何,所以xdebug没有使用开箱即用的灯,我也无法从源代码编译它。
我希望有人有建议,我可以尝试下。
好的,我会在周末尝试。你知道它是否取代旧灯安装,并影响我的数据,如数据库内容? – patman
我不认为它应该覆盖你的数据库,但做一个副本以防万一。我几乎没有使用XAMPP的经验,所以我不能向你保证。 –