Re: [php-139] compiling xdebugger extension for netbeans ide for php on a mac for xampp

From: Ian Selby
Sent on: Friday, January 23, 2009 1:05 PM
I believe you need to grab the developer package for XAMPP, so you get all the c libraries needed to compile the PECL stuff... haven't tried it with xampp to be honest, but that may be a good place to start:
http://www.apachefriends.org/download.php?xampp-macosx-0.7.4-dev.tar.gz

-Ian

On Fri, Jan 23, 2009 at 12:42 PM, Janis Rough <[address removed]> wrote:
Hi everyone:
The xdebugger for Windows has a compiled version but I can't find one for the mac for xampp.   I don't know how to install it from PECL on my mac on Xampp either so I'm trying to compile xdebug from source?   I unpacked the tarball and ran phpize on xdebug-2.0.4 as per instructions below and got an error about autoconf.   Here are the errors from the terminal window:

j-rs-computer:/Source jr$ cd xdebug-2.0.4
j-rs-computer:/Source/xdebug-2.0.4 jr$ /usr/bin/phpize xdebug-2.0.4
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:       
Zend Module Api No:    
Zend Extension Api No: 
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

This autoconf error could it be the problem with disabling the Zend optimizer?  I looked in php.ini for Xampp and did not find a reference to the zend optimizer?  See #3.

------on netbeans.org these instructions for installing with Xampp for the mac-------

Because XAMPP does not contain the XDebug debugger, you need to install and set up the XDebug as a component.

  1. Download and compile XDebug source files. The download link for source files is listed under Releases.
  2. Install XDebug into the ../xampplite/php/ folder.
  3. Because Zend optimizer blocks XDebug, you need to disable Zend optimizer first. In the ../xampplite/php/php.ini file, locate the relevant lines and remove them or mark as comments.
  4. Run the XAMPP Control Panel and restart the Apache web server.
  5. Find more information on configuring XDebug here.
------also these instructions from www.xdebug.org--------- [ I am stuck on #3]

Compiling

You compile Xdebug separately from the rest of PHP. Note, however, that you need access to the scripts 'phpize' and 'php-config'. If your system does not have 'phpize' and 'php-config', you will need to compile and install PHP from a source tarball first, as these script are by-products of the PHP compilation and installation processes. (Debian users can install the required tools with apt-get install php4-dev, or apt-get install php5-dev). It is important that the source version matches the installed version as there are slight, but important, differences between PHP versions. Once you have access to 'phpize' and 'php-config', do the following:

  1. Unpack the tarball: tar -xzf xdebug-2.0.2.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.0.2
  3. Run phpize: phpize (or /path/to/phpize if phpize is not in your path). See in the table below which version numbers it should show for different PHP versions. Make sure you use the phpize that belongs to the PHP version that you want to use Xdebug with.
  4. ./configure --enable-xdebug (or: ./configure --enable-xdebug --with-php-config=/path/to/php-config if php-config is not in your path).
Please help me get xdebugger working.
Thanks and regards,
Janis

Janis Rough




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Janis Rough ([address removed]) from The San Francisco PHP Meetup Group.
To learn more about Janis Rough, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA

Our Sponsors

GameSpot.com

GameSpot.com & CBSi provides the facilities our group uses every month.

O'Reilly User Group Program

The O'Reilly User Group Program provides the great books we get monthly.

Other nearby
Meetup Groups
Why these groups?
x

The Meetup Groups shown here are topically similar to The San Francisco PHP Meetup Group.

Groups are more likely to be displayed here if they:

  • have a Meetup scheduled
  • have a high rating
  • have a group photo
  • are "public" and not "private"
  • have shown they are likely to stick around (older than 30 days)

Log in

  • Not registered with us yet?
or

Log in to Meetup with your Facebook account.

Sign up

or

Join this Meetup Group even quicker with your Facebook account.

By clicking the "Sign up using Facebook" or "Sign up" buttons above, you agree to Meetup's Terms of Service