在做
gem install memcached
以下错误被抛出。
....
....
checking for pod2man... /usr/bin/pod2man
./configure: line 22468: syntax error near unexpected token `sasl,,'
./configure: line 22468: ` AC_LIB_HAVE_LINKFLAGS(sasl,,'
make: *** [config.status] Error 2
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
我已经使用
安装了libmemcachedsudo yum install libmemcached
答案 0 :(得分:18)
在Ubuntu上,尝试:
sudo apt-get install libsasl2
sudo apt-get install libsasl2-dev
答案 1 :(得分:3)
我在亚马逊的AMI Linux上尝试安装memcached gem时遇到了这个问题。
我通过安装cyrus-sasl和cyrus-sasl-devel解决了这个问题:
cyrus-sasl.i686 : The Cyrus SASL library
cyrus-sasl-devel.i686 : Files needed for developing applications with Cyrus SASL
以及,这是关键:
gettext.i686 : GNU libraries and utilities for producing multi-lingual messages
gettext-devel.i686 : Development files for gettext
安装完毕后
sudo gem install memcached
Building native extensions. This could take a while...
Successfully installed memcached-1.3.5
1 gem installed
答案 2 :(得分:0)
我认为你需要安装memcache-client。
gem install memcache-client
你会看到:
1 gem installed
Installing ri documentation for memcache-client-1.8.5...
Installing RDoc documentation for memcache-client-1.8.5...