The path starts with "Installing shared extensions:"). (I have highlighted that in the screenshot. It may take a few seconds and when you are done you will be presented with path of a directory that contains "xdebug.so" file. configure -enable-xdebug -with-php-config=/opt/php5.2/bin/php-config Once you find the php config file path run these commands to configure the xdebug setup then make and install the xdebug. a simple search like this will lead you to the right path for me it was "/opt/php5.2/bin/php-config" $ sudo find / -name "php-config" Now we need to find the configuration file location for php 5.2. If you see other numbers for API versions it means the "phpize" is not for php 5.2.17 Configuring for: ok now that we have the path to "phpize" let's run it on the xdebug source files. in my case it was in "/opt/php5.2/bin/phpize". to find the "phpize" for your php 5.2 just run this command: $ sudo find / -name "phpize"Īnd locate the file related to your php 5.2 instillation. The key concept here is to use the correct version of "phpize". then extract it into a folder. Prior to configuring files for compilation first we need to run "phpize" on the source files. First download the source file of the xdebug. It's not going to be as easy as it went with xdebug for php 5.3. ![]() Install it via "php5-xdebug" package by this command and then restart the Apache: $ sudo apt-get install php5-xdebugĬheck your phpinfo() output and you should see this indicating that xdebug has been installed. Just let the package manager to do the stuff for you. ![]() First don't try any manual way to install x-debug for php 5.3. If you are like me and having both php 5.2 (compiled from source) and php 5.3 (installed by apt-get) on the same development machine (ubuntu 11.10), then one day you decide to install xdebug, chances are you may find yourself struggling to follow instructions in xdebug documentation with no luck for hours.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |