我按照以下步骤在我的Centos Server中安装PECL memcached,总是出现错误。安装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
direcotry。
请指教。
有你尝试没有--with-libmemcache-dir –
是的,我试过但得到了'错误:'/ tmp/pear/temp/memcached/configure --with-libmemcached-dir = no'失败 ' – Tester
我也得到了'error'配置:错误:否,sasl.h不可用。使用--disable-memcached-sasl运行配置以禁用此检查 ''当尝试不使用'--with-libmemcache-dir'时 – Tester