How to install XDebug under VMWare Ubuntu LAMP appliance?

Subscribe to How to install XDebug under VMWare Ubuntu LAMP appliance? 8 post(s), 2 voice(s)

 
Avatar dalibor983 5 post(s)

I tried to install xdebug with:
“pecl install xdebug”
but I got errors.

Than I found this tutorial on web address
“http://www.niccolofavari.com/configure-xdebug-with-bitnami-php-stacks-on-linux-ubuntu” but command
“sudo apt-get install php5-dev php-pear”
did not work.

Is there any way to install xdebug on this appliance?

 
Avatar beltran Administrator 1,948 post(s)

Hi,

Have you tried to update the repository before isntalling the packages? Which is the exact error?

$ sudo apt-get update
$ sudo apt-get install php5-dev php-pear

Cheers

 
Avatar dalibor983 5 post(s)

Thanks man. That is it.

 
Avatar dalibor983 5 post(s)

There is another problem. After “sudo apt-get install php5-dev php-pear” command finished. Command “pecl install xdebug” build xdebug.so for php 5.3 but vmware lamp appliance has php version 5.2.13. What can I do now?

 
Avatar beltran Administrator 1,948 post(s)

Hi,

Sorry but I’m confused. You are installing php packages in your system only to copy the xdebug extension. Try to install directly from the pecl that is included in LAMPStack but maybe you have to install make, gcc, autoconf and other compilation tools:

$ cd installation_directory
$ php/bin/pecl install xdebug

I hope it helps

 
Avatar dalibor983 5 post(s)

Thanks. Now it works.

 
Avatar dalibor983 5 post(s)

You should build php with XSL support.

 
Avatar beltran Administrator 1,948 post(s)

Thanks for your suggestion. We will add it in our TODO list.