ubuntu在xampp下安装memcache扩展
sudo wget http://pecl.php.net/get/memcache-2.2.1.tgz sudo tar vxzf memcache-2.2.1.tgz cd memcache-2.2.1/ sudo /opt/lampp/bin/phpize ./configure --with-php-config=/opt/lampp/bin/php-config --enable-memcache #make #make install (会显示编译好了memcache.so,并安装到了 Build complete. Don't forget to run 'make test'. root@hdp003:/home/cchunDownload/memcache-2.2.1# make install Installing shared extensions: /opt/lampp/lib/php/extensions/no-debug-non-zts-20121212/ ) 如果显示错误: cd /usr/src/ sudo wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz sudo tar -zxvf m4-1.4.9.tar.gz cd m4-1.4.9/ ./configure && make && make