安装蓝布 - 配置选项?

时间:2011-09-22 04:17:27

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

我尝试输入

来安装蓝布宝石
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

我应该提供哪些选项?

2 个答案:

答案 0 :(得分:0)

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

运行

  

brew install markdown

然后

  

宝石安装蓝布

答案 1 :(得分:0)

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

检查.ruby-version。