gem установить memcached не удалось - PullRequest
4 голосов
/ 06 января 2012

При выполнении

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.

Я уже установил libmemcached с помощью

sudo yum установить libmemcached

Ответы [ 3 ]

18 голосов
/ 06 января 2012

В Ubuntu попробуйте выполнить:

sudo apt-get install libsasl2

sudo apt-get install libsasl2-dev
3 голосов
/ 17 января 2012

Я столкнулся с этой проблемой при попытке установить гем memcached на Amazon AMI Linux.

Я решил проблему с установкой 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
0 голосов
/ 30 сентября 2012

Я думаю, вам нужно установить 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...
...