title: How to install eAccelerator for XAMPP on Mac OS X 10.7 Lion
body: <p>I had some problems installing eAccelerator on XAMPP installation of Mac OS X Lion.</p>
  
  <p>Firstly, I had this problem:</p>
  
  <pre><code> Mohd-Yusufs-MacBook-Pro:APC-3.1.9 mohdyusuf$ $PHP_PREFIX/bin/phpize
      grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/main/php.h: No such file or directory
      grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/Zend/zend_modules.h: No such file or directory
      grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/Zend/zend_extensions.h: No such file or directory
      Configuring for:
      PHP Api Version:        
      Zend Module Api No:     
      Zend Extension Api No:
  </code></pre>
  
  <p>So I solved it by installing "Developer package" from XAMPP download page.</p>
  
  <p>Then, I had problems with compiled version of eAccelerator:</p>
  
  <pre><code> PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/eaccelerator.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/eaccelerator.so, 9): no suitable image found.  Did find:
      /Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/eaccelerator.so: mach-o, but wrong architecture in Unknown on line 0
  </code></pre>
  
  <p>How to solve it?</p>