title: Upgrading Xdebug error Can't locate Autom4te/C4che.pm
body: <p>When setting up PhpStorm and configuring Xdebug I get the following error:</p>
  
  <pre><code>Xdebug requires Zend Engine API version 220121212. The Zend Engine API 
  version 320151012 which is installed, is newer. Contact Derick Rethans 
  at http://xdebug.org/docs/faq#api for a later version of Xdebug.
  </code></pre>
  
  <p>I'm running Mac OS X El Capitan 10.11.6.</p>
  
  <p>UPDATE:</p>
  
  <p>Following @alix-blex advise to compile a new version, I use the following to determine what steps to take:</p>
  
  <p><a href="https://xdebug.org/wizard.php" rel="nofollow noreferrer">https://xdebug.org/wizard.php</a></p>
  
  <p>So while compiling a new version of Xdebug and running the following commands I get an error:</p>
  
  <pre><code>wget http://xdebug.org/files/xdebug-2.5.4.tgz
  tar -xvzf xdebug-2.5.4.tgz
  cd xdebug-2.5.4
  phpize
  </code></pre>
  
  <p>Then I get this error</p>
  
  <pre><code>Configuring for:
  PHP Api Version:         20151012
  Zend Module Api No:      20151012
  Zend Extension Api No:   320151012
  Can't locate Autom4te/C4che.pm in @INC (you may need to install the Autom4te::C4che module) (@INC contains:
  /usr/local/share/autoconf
  /Library/Perl/5.18/darwin-thread-multi-2level
  /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level
  /Network/Library/Perl/5.18
  /Library/Perl/Updates/5.18.2
  /System/Library/Perl/5.18/darwin-thread-multi-2level
  /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level
  /System/Library/Perl/Extras/5.18 .) at /usr/local/bin/autom4te line 37.
  BEGIN failed--compilation aborted at /usr/local/bin/autom4te line 37.
  </code></pre>
  
  <p>FINALLY (worked after)</p>
  
  <pre><code>brew tap homebrew/homebrew-php
  brew install php70-xdebug
  sudo vi /usr/local/php7/lib/php.ini
  
  (insert into php.ini)
  [Xdebug]
  zend_extension="/usr/local/Cellar/php70-xdebug/2.5.5/xdebug.so"
  xdebug.remote_enable=1
  
  sudo apachectl restart
  </code></pre>
  
  <p>Thanks for your help @alex-blex</p>