我会尽力帮助您翻译。以下是我翻译的结果:
其次,安装PECL memcached。
实际上,
请给予建议。
我按照以下步骤在我的CentOS服务器上安装PECL memcached,但总是遇到错误。
首先,安装libmemcached
cd /opt
wget http://launchpad.net/libmemcached/1.0/0.40a/+download/libmemcached-0.40.tar.gz
tar -xzvf libmemcached-0.40.tar.gz
cd libmemcached-0.40
./configure
make
make install
其次,安装PECL memcached。
cd /opt
pecl download memcached-1.0.2
tar zxvf memcached-1.0.2.tgz
cd memcached-1.0.2
phpize
./configure --with-libmemcached-dir=/opt/libmemcached-0.40/libmemcached
我总是遇到错误
checking for memcached igbinary support... disabled
configure: error: Can't find libmemcached headers under "/opt/libmemcached-0.40/libmemcached"
实际上,
memcached.h
文件位于 /opt/libmemcached-0.40/libmemcached
目录中。请给予建议。