Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 安装bluecloth-配置选项?_Ruby On Rails 3_Rubygems_Bluecloth - Fatal编程技术网

Ruby on rails 3 安装bluecloth-配置选项?

Ruby on rails 3 安装bluecloth-配置选项?,ruby-on-rails-3,rubygems,bluecloth,Ruby On Rails 3,Rubygems,Bluecloth,我试着通过打字来安装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

我试着通过打字来安装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

我应该提供哪些选项?

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

brew安装降价

然后

宝石蓝布


在Ruby 2.2.3下安装bluecloth 2.0.11时,我遇到了同样的问题。原来Ruby 2.2.3太新了。回到Ruby 2.1.5解决了这个问题

检查你的.ruby版本