1

我尝试通过键入来安装 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

我应该提供哪些选项?

4

2 回答 2

0

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

冲泡安装降价

然后

宝石安装蓝布

于 2011-09-23T07:40:45.047 回答
0

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

检查您的 .ruby 版本。

于 2015-12-01T21:42:02.990 回答