Search code examples
phpxcodexcache

phpize Install xcache in mac os x 10.7.3,no such file directory


When I run phpsize,get the following error:

$ cd /usr/local/xcache-2.0.0
$ phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:        
Zend Module Api No:     
Zend Extension Api No:  
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

I have installed xcode 4.3.2


Solution

  • You need autoconf utility to complete the installation. You can install Homebrew and then do

    brew install autoconf

    in Terminal. After that repeat XCache installation.

    I prefer Homebrew because it's easy to use and it puts all its data in /usr/local and doesn't require you to provide sudo password. So it keeps less garbage in your system than for example MacPots. However, any package manager will help.

    UPD: Don't forget to check if XCode has Command Line Tools installed