2013-08-06 46 views
1

想安裝memcached寶石在我的窗戶8.Am收到以下錯誤而執行gem install memcachedMemcached的寶石安裝錯誤

我已經安裝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 

我該如何糾正這個錯誤?

回答

0

在Fedora上,我安裝了cyrus-sasl-devel。在Windows上可能有相同或相同的東西...試試看..