Search code examples
xdebughomestead

How to fix this compile error for Xdebug on Homestead


I cannot install Xdebug on Homestead because I get some sort of compile error.

I am following the Xdebug Wizard (https://xdebug.org/wizard) and when I input the ./configure command I get this error:

configure: error: in /home/vagrant/code/xdebug-2.7.2:
configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details


Solution

  • This points at that you don't have a C compiler installed at all. You will have better luck after installing the php-dev package first, which should pull in the compilers that PHP extensions will need.