gem install memcached失败

ran*_*ser 4 ruby memcached rubygems

在做

gem install memcached 
Run Code Online (Sandbox Code Playgroud)

以下错误被抛出.

....
....
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.
Run Code Online (Sandbox Code Playgroud)

我已经安装了libmemcached

sudo yum install libmemcached

Gau*_*pta 18

在Ubuntu上,尝试:

sudo apt-get install libsasl2

sudo apt-get install libsasl2-dev
Run Code Online (Sandbox Code Playgroud)