安装PECL Memcached错误
问题描述:
我按照以下步骤在我的Centos服务器中安装PECL memcached,总是出现错误.
I followed the following steps to install PECL memcached in my Centos Server, always got errors.
首先.安装libmemcached
First. Install 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
Secondly, 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
目录中.
Actually memcached.h
file is in /opt/libmemcached-0.40/libmemcached
direcotry.
请咨询.
答
要使用CentOS解决此问题,您应该能够运行:
To solve this issue with CentOS, you should be able to run:
yum install cyrus-sasl-devel
仅供参考,这个问题是针对CentOS的,但是对于Ubuntu,以下应该起作用:
FYI, this question refers to CentOS, but for Ubuntu, the following should work:
sudo apt-get install libsasl2-dev