【问题标题】:Installing bluecloth - configuration options?安装 bluecloth - 配置选项?
【发布时间】:2011-11-22 11:54:54
【问题描述】:

我尝试通过键入来安装 bluecloth gem

gem install bluecloth

但是当我这样做时,我收到以下错误消息:

checking for random()... *** 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=/Users/cyrusstoller/.rvm/rubies/ruby-1.9.2-p136/bin/ruby
    --with-rdiscount-dir
    --without-rdiscount-dir
    --with-rdiscount-include
    --without-rdiscount-include=${rdiscount-dir}/include
    --with-rdiscount-lib
    --without-rdiscount-lib=${rdiscount-dir}/lib

我应该提供哪些选项?

【问题讨论】:

    标签: ruby-on-rails-3 rubygems bluecloth


    【解决方案1】:

    在尝试安装 gem 之前,我需要安装 markdown。

    运行

    brew 安装 markdown

    然后

    gem 安装 bluecloth

    【讨论】:

      【解决方案2】:

      我在尝试在 Ruby 2.2.3 下安装 bluecloth 2.0.11 时遇到了同样的问题。事实证明 Ruby 2.2.3 太新了。回到 Ruby 2.1.5 解决了这个问题。

      检查您的 .ruby 版本。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2023-01-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-12-27
        • 1970-01-01
        • 2023-01-17
        相关资源
        最近更新 更多