1
当我运行phpsize,收到以下错误:phpize在Mac OS X 10.7.3,没有这样的文件目录中安装了XCache
$ 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.
我已经安装的Xcode 4.3.2
虽然我的问题没有得到解决,还是谢谢you.I'll尝试其他的解决方案。 – slimboy 2012-08-16 10:49:40
你从哪里得到xcache?它是PHP扩展的源代码?如果是这样,为什么它被放置在/ usr/local?我希望你在〜/ Documents/xcache或〜/ Downloads/xcache中将它解压缩并从那里开始构建。 执行此操作 - 从http://xcache.lighttpd.net/#Downloads下载XCache,解压缩,进入dir,运行'phpize',然后执行'。/ configure',然后执行make和make install当然,如果以前的命令成功) – zysoft 2012-08-16 15:54:31
是的,我有xcache从xcache.lighttpd.net/#Downloads和解压缩。并将其复制到/usr/local/。通过“CD/usr/local/xcache - 2.0.0”命令进入dir,然后运行phpize.I曾经有过这样的操作,但是faild。 – slimboy 2012-08-17 04:45:29