debian wheezy 编译 php5-memcached
更新:HHH   时间:2023-1-7


debian wheezy的软件包php5-memcached 没有igbinary支持,也没有提供php5-igbinary


由于业务需要,手动编译添加igbinary支持。


#删除php5-memcached软件包
apt-get remove php5-memcached
#安装igbinary
pecl install igbinary
echo "extension=igbinary.so" >/etc/php5/fpm/conf.d/20-igbinary.ini
#安装编译依赖包
apt-get install php5-dev make libmemcached-dev pkg-config
#下载并编译源码包
pecl download memcached
tar zxvf memcached*.tgz
cd memcached*/
phpize
./configure --enable-memcached-igbinary --disable-memcached-sasl
make
make install
echo "extension=memcached.so" >/etc/php5/fpm/conf.d/20-memcached.ini

新的模块分别是

/usr/lib/php5/20100525/igbinary.so
/usr/lib/php5/20100525/memcached.so




返回web开发教程...