Windows 上的 libcurl 问题
我在 Windows 上安装 libcurl ruby 绑定 gem (curb) 时遇到了困难。我已经做对了一切。我在 PATH 上有 libcurl 目录,然后我尝试了两种安装 gem 的方法,
gem install curb
但
rake install EXTCONF_OPTS='--with-curl-dir=B:\curl'
它们都不起作用。不过,它们因不同的错误而失败,第二个错误更具建设性:
C:/Ruby/lib/ruby/gems/1.8/gems/curb-0.7.7.1/ext/curb_postfield.c:76: 未定义的引用 'imp_curl_formadd'
但我不知道这意味着什么。
编辑:第一个错误是此投诉
extconf.rb:19: 找不到 libcurl 或 curl/curl.h(运行时错误)
即使 libcurl dir (B:\curl) 已经在 PATH 中。这是完整的错误消息——我把它放在要点中,因为这个地方的格式太奇怪了。
I am having a hard time installing libcurl ruby bindings gem (curb) on Windows. I have done everything right. I have libcurl directory on the PATH, and then I try two ways of installing the gem
gem install curb
and
rake install EXTCONF_OPTS='--with-curl-dir=B:\curl'
None of them work. They fail with different errors, though, and the second one's error is more constructive:
C:/Ruby/lib/ruby/gems/1.8/gems/curb-0.7.7.1/ext/curb_postfield.c:76:
undefined reference to
'imp_curl_formadd'
But I don't know what this means.
EDIT: The first error is this complaint
extconf.rb:19: Can't find libcurl or
curl/curl.h (RuntimeError)
Even though libcurl dir (B:\curl) is already in the PATH. Here is the full error message--I put it ina gist because the formatting was too weird for this place.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
picardo,
我之前在 Windows 中安装路边宝石时遇到了麻烦。在尝试了解其他人如何解决这个问题时,我遇到了很多问题,但没有太多解决方案。今晚必须再次这样做,我决定记录我的步骤并发布结果:
http://beginrescue.blogspot.com/ 2010/07/installing-curb-with-ruby-191-in.html
抱歉博客垃圾邮件,希望这对某人有用。
皮特
picardo,
I've had trouble installing the curb gem in Windows before. In trying to see how others had solved this I came across a lot of questions and not very many solutions. Having to do it again tonight I decided to document my steps and post the results:
http://beginrescue.blogspot.com/2010/07/installing-curb-with-ruby-191-in.html
Sorry for the blogspam, hope this is useful for somebody.
pete