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 をインストールする必要がありました。

走る

brew install マークダウン

それから

gem install ブルークロス

于 2011-09-23T07:40:45.047 に答える
0

Ruby 2.2.3 の下に bluecloth 2.0.11 をインストールしようとしたときに、同じ問題が発生しました。Ruby 2.2.3 は新しすぎることがわかりました。Ruby 2.1.5 に戻すと、問題は解決しました。

.ruby-version を確認してください。

于 2015-12-01T21:42:02.990 に答える