2011-03-07 78 views
0

我得到这个错误:红宝石路边:我安装了0.7.12,捆绑笙歌不能够调用“捆绑更新”何时安装0.7.10

Installing curb (0.7.10) with native extensions C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

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:23:in `': 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.

然后installed最新版本路边(0.7 .12)自己使用DevKit,我可以在“宝石列表”上看到它。然而,即使我没有在我的Gemfile中的任何地方提到“curb”,bundler仍然会引发同样的错误,试图安装curb 0.7.10(旧版本)。

问题在哪里,我该如何解决?

Windows 7,Ruby 1.92,Rails 3

回答

1

找到了解决方案。只是“捆绑更新遏制”。

相关问题