[英]Gem install on Windows 7
Try to install feedzirra gem 尝试安装feedzirra gem
Do this: 做这个:
gem install pauldix-feedzirra
I get the following error: 我收到以下错误:
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
Ver: 版本:
C:\Ruby192>gem -v
1.3.7
C:\Ruby192>ruby -v
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
Does anyone know how to fix this? 有谁知道如何解决这一问题? Thanks 谢谢
It seems you don't have libcurl installed: 看来你没有安装libcurl :
checking for curl-config... no
checking for main() in -lcurl... no
Try this: download it and copy everything from the bin
directory either to C:\\Windows\\System32
or %RUBY_ROOT%\\bin
. 试试这个: 下载它并将bin
目录中的所有内容复制到C:\\Windows\\System32
或%RUBY_ROOT%\\bin
。
You need to download Curl (binaries and devel) . 您需要下载Curl(二进制文件和开发) 。 The problem you have is that it can't find the header files that usually are on devel packages. 您遇到的问题是它找不到通常在开发包上的头文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.