[xdebug-general] Re: failed to install xdebug on Debian and Ubuntu

From: Derick Rethans <derick[@]xdebug.org>
Date: Fri, 22 Jun 2007 10:10:20 +0200 (CEST)

On Thu, 21 Jun 2007, Boris wrote:

> I have just tried to install latest version of xdebug but it was not
> successful. First I tried to install it with pecl as suggested
>
> $ sudo su
> $ pecl install xdebug-beta
>
> it installed then I edit the php.ini file (/etc/php5/apache2/php.ini)
> and add there extension = xdebug.so

That is incorrect, you *need* to use zend_extension_*=

> restarted the apache and there was no xdebug module, $ php -m also did
> not show it changing extension = xdebug.so to full path to xdebug.so,
> or changing 'extension' to 'zend_extension' or 'zend_extension_ts'
> also did not help.

It depends a bit on which version of PHP you run. I assume you're using
the prefork version of apache, and not a debug build of PHP, and then
"zend_extension" is correct.

> I uninstalled xdebug with pecl unistall xdebug command and tried to
> install it from source code:
>
> $ cd /tmp
> $ wget "http://xdebug.org/link.php?url=xdebug200rc4"
> $ sudo su
> # phpize

Could you show me the phpize output?

> # ./configure --enable-xdebug
> # make
> # cp modules/xdebug.so /usr/lib/php5/20060613+lfs/xdebug.so
>
> then again I tried to change php.ini in different ways. I make sure
> that it is corect php.ini file by checking the phpinfo() output, also
> the path /usr/lib/php5/20060613+lfs/ is correct because it is in this
> output.
>
> Finally I turn on apache verbose logging, and I saw this:
>
>
> [Thu Jun 21 20:44:38 2007] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-10 configured -- resuming normal operations
> [Thu Jun 21 20:44:38 2007] [info] Server built: Mar 27 2007 15:06:55
> [Thu Jun 21 20:44:38 2007] [debug] prefork.c(991): AcceptMutex: sysvsem (default: sysvsem)
> Failed loading /usr/lib/php5/20060613+lfs/xdebug.so: /usr/lib/php5/20060613+lfs/xdebug.so: undefined symbol: core_globals_id
> Failed loading /usr/lib/php5/20060613+lfs/xdebug.so: /usr/lib/php5/20060613+lfs/xdebug.so: undefined symbol: core_globals_id
> Failed loading /usr/lib/php5/20060613+lfs/xdebug.so: /usr/lib/php5/20060613+lfs/xdebug.so: undefined symbol: core_globals_id
> Failed loading /usr/lib/php5/20060613+lfs/xdebug.so: /usr/lib/php5/20060613+lfs/xdebug.so: undefined symbol: core_globals_id
> Failed loading /usr/lib/php5/20060613+lfs/xdebug.so: /usr/lib/php5/20060613+lfs/xdebug.so: undefined symbol: core_globals_id
> [Thu Jun 21 20:45:38 2007] [info] removed PID file /var/run/apache2.pid (pid=8335)
> [Thu Jun 21 20:45:38 2007] [notice] caught SIGTERM, shutting down
> Failed loading /usr/lib/php5/20060613+lfs/xdebug.so: /usr/lib/php5/20060613+lfs/xdebug.so: undefined symbol: core_globals_id
> PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/xdebug.so' - /usr/lib/php5/20060613+lfs/xdebug.so: undefined symbol: core_globals_id in Unknown on line 0
> [Thu Jun 21 20:45:49 2007] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-10 configured -- resuming normal operations
> [Thu Jun 21 20:45:49 2007] [info] Server built: Mar 27 2007 15:06:55
> [Thu Jun 21 20:45:49 2007] [debug] prefork.c(991): AcceptMutex: sysvsem (default: sysvsem)
>
> ________
>
> ps: kernel is 2.6.18-4-686, Debian testing, Apache/2.2.3 (Debian) PHP/5.2.0-10

Could you show me your phpinfo() output, I guess that debian uses
--enable-versioning, or you simply have the wrong headers installed.
Providing the two different outputs that I requested above will help me
tell you more about that. It looks like you're mixing two PHP versions
here somehow, such as http://pecl.php.net/bugs/bug.php?id=6602
suggests.

> As for Ubuntu 7.04: I installed xdebug successfully with pecl and
> there was no errors in apache log file but there is no info about
> xdebug in phpinfo() output or in php -m output...

Then you did not modify the correct php.ini, or used the wrong
zend_extension* line.

Derick

-- 
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Fri Jun 22 2007 - 10:10:18 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST