XCache的安裝;

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章