[xdebug-general] Re: OS X not working

From: Bertrand Mansion <bmansion[@]mamasam.com>
Date: Mon, 14 Nov 2005 22:46:57 +0100

indole wrote:

>Xdebug will not load into PHP. I installed Xdebug via Pecl via Pear via
>Fink (http://fink.sourceforge.net)
>
>I changed the config file to include the debug.so in multiple ways.
>First I sourced in the as per the directions:
>zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20020429/xdebug.so"
>
>
>Then I noticed the extensions_dir path was curiously set to "/" So I
>changed it to
>extension_dir = "/usr/lib/php/extensions/"
>zend_extension="xdebug.so"
>
>And then for fun I tried
>extension_dir = "/"
>zend_extension="xdebug.so"
>
>And
>extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20020429/"
>zend_extension="xdebug.so"
>There are no errors even though I have both the display_errors and
>display_startup_errors turned on. Nothing interesting is popping up in
>the Apache or PHP logs.
>
>The result of phpinfo() is avaiable here:
>http://public.indolering.warpmail.net/index.php.html
>
>Finally the web page should be updated to reflect Xdebugs availability
>via Fink once I get this working and the old pressedpants.com link
>removed or pointing towards:
>http://web.archive.org/web/20041025195240/http://pressedpants.com/archives/
dated
>/2004/04/08/xdebug_on_os_x/

Extension_dir on you phpinfo show '/', it should show where your extensions are
installed. My recommendation:

1. Grab php 5.1 RC3+ (snaps.php.net) and ./configure, make, make install. Here
are my options:
./configure' '--prefix=/usr' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--with-apxs' '--enable-cli' '--with-zlib-dir=/usr'
'--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring'
'--enable-sockets' '--with-config-file-path=/etc' '--with-mysql-sock=/tmp'
'--with-mysql=/usr/local/mysql' '--with-gd' '--with-jpeg-dir=/usr/local/lib'
'--with-png-dir=/usr/local/lib' '--enable-gd-native-ttf'
'--with-freetype-dir=/usr/local/lib' '--enable-simplexml'
'--with-xsl=/usr/local/lib' '--enable-soap' '--with-iconv=/usr' '--enable-pdo'
'--with-pdo-sqlite' '--with-pdo-mysql=/usr/local/mysql'
'--with-mnogosearch=/usr/local/mnogosearch'

The prefix /usr overwrite the mac osx default php installation, which means that
if Apple has the bad idea to upgrade the php version they ship, it might be
overwritten, so be prepared to make install again.

2. Get xdebug2 tar.gz from xdebug.org

3. tar xzvf xdebug2...

4. phpize, ./configure, make

5. copy modules/xdebug.so where your extensions are expected in your php.ini
config. Beware, cli apps can use php-cli.ini if it exists. php.ini should be in
/etc if you use my configure options above. cli is not threaded, while if you
use apache2, it is threaded. If you use Macosx default apache 1.3 installation
(which is fine imo), simply add this to php.ini:

extension_dir = /where/your/.so/are/located/
zend_extension = xdebug.so

I hope I am understandable, I just had a nice bottle of red wine from Burgundy
and enjoyed it.

Good luck,

-- 
Bertrand Mansion
http://www.mamasam.com         - creative internet solutions
http://golgote.freeflux.net - my blog
Received on Mon Nov 14 2005 - 22:46:54 GMT

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