我正在开发一台Windows机器并试图让curb插件工作,我意识到首先我需要在我的机器上安装curl库,这就是我想要做的事情。
我只是下载了一个curl库,一个curllib库,并将它们分别位于c:/ curl和c:/ curllib。我设置了我的环境变量,我可以执行curl.exe,它就像一个漂亮的工具。但是,我的宝石仍然失败了以下内容。
C:/InstantRails/ruby/bin/ruby.exe extconf.rb install curb
checking for curl-config... no
checking for main() in curl.lib... 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
--srcdir=.
--curdir
--ruby=C:/InstantRails/ruby/bin/ruby
--with-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:9: 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:/InstantRails/ruby/lib/ruby/gems/1.8/gems/curb-0.4.4.0 for inspection.
Results logged to C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/curb-0.4.4.0/ext/gem_make.out
有人有什么想法吗?
答案 0 :(得分:2)
这最终成为完成工作的最佳教程。
http://www.opiumtrail.com/wiki/CurbForWindows/
注意事项: