windows8中的Memcached gem安装错误

时间:2013-08-06 04:51:05

标签: ruby memcached

我试图在我的Windows中安装memcached gem 8.执行命令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

我如何纠正这个错误?

1 个答案:

答案 0 :(得分:0)

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

相关问题