【问题标题】:Installing curb on ruby1.8.6在ruby1.8.6上安装路边
【发布时间】:2012-07-16 15:32:18
【问题描述】:

我无法使用 ruby​​1.8.6 p111 在 Windows 7 x64 上安装遏制:

ruby extconf.rb install curb-0.8.1.gem -- --with-curl-dir=C:\curl-7.26.0
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:/Ruby186/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:18:   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.

为了澄清,C:\curl-7.26.0 是一个带有lib/bin/include 文件夹的libcurl v7.26.0

我错过了什么?

【问题讨论】:

    标签: ruby windows curl curb


    【解决方案1】:

    我在此处提供的相同答案适用于您的问题:

    https://stackoverflow.com/a/11484346/117298

    但我强烈建议您至少升级到 Ruby 1.8.7,因为不再维护 1.8.6 并且已经宣布 1.8.7 终止。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-25
      • 2012-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多