wget https://launchpad.NET/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gz tar -zxvf libmemcached-1.0.16.tar.gz cd libmemcached-1.0.16 ./configure --prefix=/usr/local/libmemcached --with-memcached make && make install wget http://pecl.php.net/get/memcached-2.1.0.tgz tar -xf memcached-2.1.0.tgz cd memcached-2.1.0 /usr/local/php/bin/phpize ./configure --prefix=/usr/local/phpmemcached --enable-memcached --with-php-config=/usr/local/php/bin/php-config --with-libmemcached-dir=/usr/local/libmemcached make && make install (责任编辑:IT) |