【发布时间】:2011-05-19 16:29:23
【问题描述】:
我一直在尝试在我的“Ruby on Rails”应用程序上做一些简单的“rails 服务器”,但是我正在和我的一个使用 linux 的朋友一起工作,我坐在 windows xp(32 位) 一切都很顺利,他实现了名为“curl”和“typhoeus”的 gem,所以为了让我在 localhost:3000 上查看它,我还必须安装 gems。
所以这就是我写的:
D:\>gem install typhoeus
Building native extensions. This could take a while...
ERROR: Error installing typhoeus:
ERROR: Failed to build gem native extension.
C:/Ruby187/bin/ruby.exe extconf.rb
checking for curl/curl.h in C:/Ruby187/lib/ruby/gems/1.8/gems/typhoeus-0.2.4/cro
ss/curl-7.19.4.win32/include... no
need libcurl
*** 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:/Ruby187/bin/ruby
Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/typhoeus-0.
2.4 for inspection.
Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/typhoeus-0.2.4/ext/typhoeus/
gem_make.out
是的,它看起来不那么漂亮,但显然它要求一个名为“libcurl”的东西,所以我从互联网上下载了适用于 windows xp 32bit 的 curl 版本,我将 exefile 和所有 dll 文件放在 windows 文件夹中.我试图简单地写“curl”来看看它是否有效。这就是我得到的:
D:\>curl
curl: try 'curl --help' or 'curl --manual' for more information
我又写了 gem install typhoeus ,我得到了和上面一样的错误,我错过了什么? libcurl 不附带 curl 吗?我急需帮助,因为我的朋友无法帮助我,因为他是 linux 专家。所以请帮助我 - 告诉我安装 typhoeus 必须做什么! (我也尝试编写 gem install typhoeus-0.2.4 但这抛出了一些其他错误:
ERROR: Could not find a valid gem 'typhoeus-0.2.4' (>= 0) in any repository
)
我是在 ruby on rails 应用程序的文件夹中写的。所以我迷路了,非常需要帮助!
提前致谢,
哈利
【问题讨论】:
标签: ruby-on-rails curl libcurl