【问题标题】:gem install memcached failsgem install memcached 失败
【发布时间】:2012-02-04 03:31:57
【问题描述】:

在做

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 install libmemcached

【问题讨论】:

    标签: ruby rubygems memcached


    【解决方案1】:

    在 Ubuntu 上,尝试这样做:

    sudo apt-get install libsasl2
    
    sudo apt-get install libsasl2-dev
    

    【讨论】:

      【解决方案2】:

      我在尝试在 Amazon 的 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
      

      【讨论】:

      • 谢谢。我在centos 6.4上遇到了同样的麻烦。并尝试“yum install cyrus-sasl and cyrus-sasl-devel”,然后修复它。
      【解决方案3】:

      我认为您需要安装 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...
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-07-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-11-08
        • 2017-02-17
        • 2015-06-13
        • 1970-01-01
        相关资源
        最近更新 更多