一、所需软件包
1 | wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz |
二、解压
1 | tar xzf libmemcached-1.0.18.tar.gz |
三、GCC升级
1 | yum install gcc44 gcc44-c++ libstdc++44-devel |
提示:yum源更新命令yum update
四、libmemcached安装
1 | ./configure --prefix=/usr/local/libmemcached --with-memcached |
五、memcached扩展安装
1 | /usr/local/php/bin/phpize |
安装完成