【问题标题】:Memcached gem installation error in windows8Windows8中的Memcached gem安装错误
【发布时间】:2013-08-06 04:51:05
【问题描述】:

我正在尝试在我的 Windows 8 中安装 memcached gem。执行命令 gem install memcached 时出现以下错误

我已经安装了Devkit 并使用了ruby1.9.3

C:\Users\aran>gem install memcached
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while.

..

ERROR:  Error installing memcached:
        ERROR: Failed to build gem native extension.

        C:/ProgramData/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for sasl/sasl.h... no
Please install SASL to continue. The package is called libsasl2-dev on Ubuntu an
d cyrus-sasl on Gentoo.
*** 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.  

 Provided configuration options

  --with-opt-dir
        --without-opt-dir
            --with-opt-include
            --without-opt-include=${opt-dir}/include
            --with-opt-lib
            --without-opt-lib=${opt-dir}/lib
            --with-make-prog
            --without-make-prog
            --srcdir=.
            --curdir
            --ruby=C:/ProgramData/RailsInstaller/Ruby1.9.3/bin/ruby   
Gem files will remain installed in C:/ProgramData/RailsInstaller/Ruby1.9.3/lib/r
uby/gems/1.9.1/gems/memcached-1.6.1 for inspection.
Results logged to C:/ProgramData/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/ge
ms/memcached-1.6.1/ext/gem_make.out

我该如何纠正这个错误??

【问题讨论】:

    标签: ruby memcached


    【解决方案1】:

    在 Fedora 上,我安装了 cyrus-sasl-devel。 Windows 上可能也有相同或等效的东西...试试看..

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-03-10
      • 2014-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-21
      相关资源
      最近更新 更多