installing xdebug on a mac from binaries

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I can't get xdebugger configured from the tarball on a Mac.  I
followed these instructions several times exactly and it seemed to
compile and configure but I don't see xdebugger in my phpinfo().   I
have the in /usr/local/php5/lib/php/extensions.  I used the
entropy release for  Apache 1.3.  Below is regarding the release from
All it says is the debug build is NO.
but it isn't listed in the extensions anywhere in the php_info() page.
PHP Version 5.2.4 Release 1 (Universal Binary)

System     Darwin j-rs-computer 8.11.0 Darwin Kernel Version 8.11.0: Wed
Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power
Build Date     Aug 31 2007 23:54:42
Configure Command     './configure' '--prefix=/usr/local/php5' '--with-
apxs' '--with-config-file-scan-dir=/usr/local/php5/php.d' '--with-
iconv' '--with-openssl=/usr' '--with-zlib=/usr' '--with-gd' '--with-
zlib-dir=/usr' '--with-ldap' '--with-xmlrpc' '--with-iconv-dir=/usr'
'--with-snmp=/usr' '--enable-exif' '--enable-wddx' '--enable-soap' '--
enable-sqlite-utf8' '--enable-ftp' '--enable-sockets' '--enable-dbx'
'--enable-dbase' '--enable-mbstring' '--enable-calendar' '--enable-
bcmath' '--with-bz2=/usr' '--enable-fastcgi' '--enable-cgi' '--enable-
memory-limit' '--enable-zip' '--enable-pcntl' '--enable-shmop' '--
enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-
curl=shared,/usr/local/php5' '--with-mysql=shared,/usr/local/php5' '--
with-mysqli=shared,/usr/local/php5/bin/mysql_config' '--with-pdo-
mysql=shared,/usr/local/php5' '--with-libxml-dir=shared,/usr/local/
php5' '--with-xsl=shared,/usr/local/php5' '--with-pdflib=shared,/usr/
local/php5' '--with-oci8=shared,instantclient,/usr/local/php5/oracle'
'--with-imap=../imap-2004g' '--with-kerberos=/usr' '--with-imap-ssl=/
usr' '--with-jpeg-dir=/usr/local/php5' '--with-png-dir=/usr/local/
php5' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local/php5'
'--with-iodbc=shared,/usr' '--with-pgsql=shared,/usr/local/php5' '--
with-pdo-pgsql=shared,/usr/local/php5' '--with-t1lib=/usr/local/php5'
'--with-gettext=shared,/usr/local/php5' '--with-ming=shared,/usr/local/
php5' '--with-mcrypt=shared,/usr/local/php5' '--with-mhash=shared,/usr/
local/php5' '--with-mssql=shared,/usr/local/php5' '--with-
FBDeveloperLibraries/Library/FrontBase' '--with-json=shared' '--enable-
memcache' '--enable-openbase_module'
Server API     Apache
Virtual Directory Support     disabled
Configuration File (php.ini) Path     /usr/local/php5/lib
Loaded Configuration File     /usr/local/php5/lib/php.ini
Scan this dir for additional .ini files     /usr/local/php5/php.d
additional .ini files parsed     /usr/local/php5/php.d/10-
extension_dir.ini, /usr/local/php5/php.d/50-extension-curl.ini, /usr/
local/php5/php.d/50-extension-fbsql.ini, /usr/local/php5/php.d/50-
extension-gettext.ini, /usr/local/php5/php.d/50-extension-json.ini, /
usr/local/php5/php.d/50-extension-mcrypt.ini, /usr/local/php5/php.d/50-
extension-mhash.ini, /usr/local/php5/php.d/50-extension-ming.ini, /usr/
local/php5/php.d/50-extension-mssql.ini, /usr/local/php5/php.d/50-
extension-mysql.ini, /usr/local/php5/php.d/50-extension-mysqli.ini, /
usr/local/php5/php.d/50-extension-oci8.ini, /usr/local/php5/php.d/50-
extension-odbc.ini, /usr/local/php5/php.d/50-extension-pdf.ini, /usr/
local/php5/php.d/50-extension-pdo_mysql.ini, /usr/local/php5/php.d/50-
extension-pdo_oci.ini, /usr/local/php5/php.d/50-extension-
pdo_pgsql.ini, /usr/local/php5/php.d/50-extension-pgsql.ini, /usr/
PHP API     20041225
PHP Extension     20060613
Zend Extension     220060519
Debug Build     no
Thread Safety     disabled
Zend Memory Manager     enabled
IPv6 Support     enabled
Registered PHP Streams     zip, php, file, data, http, ftp,
compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports     tcp, udp, unix, udg, ssl, sslv3,
sslv2, tls
Registered Stream Filters     string.rot13, string.toupper,
string.tolower, string.strip_tags, convert.*, consumed,
convert.iconv.*, bzip2.*, zlib.*
I tried to use PEC to install it.  pecl install xdebug only gives the
error message pecl command not installed.  I noticed on my PHPinfo()
page that it appears I do have the PECL module version is for SQL Lite
only and it came bundled with the entropy installer.
[(bundled) 1.0.1 $Id: pdo_sqlite.c,v 2007/03/23 14:30:00
wez Exp $ ]  from phpinfo()

I don't know why it is for SQL lite I thought it was part of PHP there
is a pecl shell script but as I said it doesn't work for installing
anything from pecl.
--------xdebug instructions--------
1. Unpack the tarball: tar -xzf xdebug-2.x.x.tgz.  Note that you do
not need to unpack the tarball inside the PHP source code tree.
Xdebug is compiled separately, all by itself, as stated above.

2. cd xdebug-2.x.x

3. Run phpize: phpize
   (or /path/to/phpize if phpize is not in your path).

4. ./configure --enable-xdebug (or: ../configure --enable-xdebug
   --with-php-config=/path/to/php-config if php-config is not in your

5. Run: make

6. cp modules/ /to/wherever/you/want/it

9. Write a PHP page that calls "phpinfo();" Load it in a browser and
   look for the info on the xdebug module.  If you see it, you have
I would appreciate any suggestions on either installing PECL so I can
download xdebug and get it to install or what I could have done wrong
in installing it from source.  I would love to have PECL and PEAR
How do I install PECL ?  If I do the command pecl install xdebug as
root I get the message
su: pecl: command not found

I can try to install it from a cvs server but I have a question.  It
says you are supposed to put the following in the .cvsource file.  I
could not find the .cvsource file.  Am I supposed to create one?
Where would it be on the mac?
vi ~/.cvsource is an empty file.  If that is where I am supposed to
put this then I will but it seems like I should be able to get pecl
working or in any case get xdebug working.
cvs -z3
update -d -P
checkout -P
diff -u


Site Timeline