Gem安装在Windows 7上

时间:2010-08-24 18:03:54

标签: ruby-on-rails ruby rubygems gem

尝试安装feedzirra gem

这样做:

gem install pauldix-feedzirra

我收到以下错误:

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing pauldix-feedzirra:
        ERROR: Failed to build gem native extension.

C:/Ruby192/bin/ruby.exe extconf.rb
checking for curl-config... no
checking for main() in -lcurl... no
*** 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:/Ruby192/bin/ruby
        --with-curl-dir
        --without-curl-dir
        --with-curl-include
        --without-curl-include=${curl-dir}/include
        --with-curl-lib
        --without-curl-lib=${curl-dir}/lib
        --with-curllib
        --without-curllib
extconf.rb:17:in `<main>':   Can't find libcurl or curl/curl.h (RuntimeError)

  Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
  options to extconf.


Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/taf2-curb-0.5.4.0 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/taf2-curb-0.5.4.0/ext/gem_make.out

版:

C:\Ruby192>gem -v
1.3.7

C:\Ruby192>ruby -v
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

有谁知道如何解决这个问题? 感谢

2 个答案:

答案 0 :(得分:0)

您似乎没有安装 libcurl

checking for curl-config... no
checking for main() in -lcurl... no

试试这个:download it并将bin目录中的所有内容复制到C:\Windows\System32%RUBY_ROOT%\bin

答案 1 :(得分:0)

您需要下载Curl (binaries and devel)。您遇到的问题是它找不到通常在开发包上的头文件。