【问题标题】:Gem install on Windows 7在 Windows 7 上安装 Gem
【发布时间】:2010-08-24 18:03:54
【问题描述】:

尝试安装feedzirragem

这样做:

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]

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

【问题讨论】:

    标签: ruby-on-rails ruby rubygems gem


    【解决方案1】:

    您似乎没有安装 libcurl

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

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

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        猜你喜欢
        • 2013-10-01
        • 2011-07-19
        • 2015-08-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-04-16
        • 1970-01-01
        • 2014-05-14
        相关资源
        最近更新 更多