Xcache是一款php缓存器,用来以缓存方式提高php的执行效率;


在安装使用Xcache之前,需要了解,php的扩展模块工具phpize


phpize:用来扩展php模块,在安装扩展模块之前需要运行此文件;

    来源:php-devel    //有时候在安装php之后没有phpize文件,那么直接安装devel包来生成;


首先运行phpize:

[root@localhost xcache-3.2.0]# /usr/bin/phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
[root@localhost xcache-3.2.0]#


./configure --enable-xcache --with-php-config=/usr/bin/php-config

报错:

configure: error: in `/src/xcache-3.2.0':
configure: error: no acceptable C compiler found in $PATH

解决:

# yum install gcc    //安装gcc套件;


# make && make install