相关疑难解决方法(0)

在Windows XP中安装Ruby Curb gem

我正在尝试使用ruby 1.8进行文件上传,似乎没有好的开箱即用的解决方案.他们似乎都需要一些第三方补丁或项目的分支才能工作.我会使用机械化,但实际上我需要与xml api接口,而机械化似乎专门用于直接处理网页.我已经尝试过RestClient,但它没有开箱即用的多部分表单的功能,你必须使用项目的分支才能使它工作.类似的情况似乎存在于Net:HTTP我认为限制将是要走的路,因为我可能想要使用multicurl反正我计划做的其他事情.但是,在我的Windows机器上,我似乎无法安装路边宝石.gem install curb给出了一个错误,说我需要指定curl库所在的位置..我已经尝试将选项传递给extconf但到目前为止没有运气.这是没有任何选项的gem install curb的输出

C:\ruby\lib\ruby\gems\1.8\gems\curb-0.5.4.0>gem install curb
Building native extensions.  This could take a while...
ERROR:  Error installing curb:
        ERROR: Failed to build gem native extension.

C:/ruby/bin/ruby.exe extconf.rb
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 …
Run Code Online (Sandbox Code Playgroud)

ruby curl windows-xp libcurl

8
推荐指数
2
解决办法
1万
查看次数

标签 统计

curl ×1

libcurl ×1

ruby ×1

windows-xp ×1