2015-04-24 94 views
0

我有很大的麻煩安裝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沒有使用開箱即用的燈,我也無法從源代碼編譯它。

我希望有人有建議,我可以嘗試下。

回答

0

轉至http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/並安裝devel版本的xampp。

沒有開發版本,您將無法簡單地編譯任何軟件包,因爲常規版本不包含必需的資源。

+0

好的,我會在週末嘗試。你知道它是否取代舊燈安裝,並影響我的數據,如數據庫內容? – patman

+0

我不認爲它應該覆蓋你的數據庫,但做一個副本以防萬一。我幾乎沒有使用XAMPP的經驗,所以我不能向你保證。 –