0

我正在尝试在 ruby​​ 中安装 gems,因为我正在关注开始 ruby​​ 书,并且当我在终端上安装它时需要安装 redcloth,它似​​乎已安装,但是当我更改为 irb 时会发生这种情况

1.9.3-p194 :001 > require 'rubygems'
 => false 
1.9.3-p194 :002 > require 'RedCloth'
LoadError: cannot load such file -- RedCloth
    from /Users/AlbertoRdz/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/AlbertoRdz/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from (irb):2
    from /Users/AlbertoRdz/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>'

也在终端

MacBook-de-Jesus:rubygems-1.8.24 AlbertoRdz$ which redcloth
/Users/AlbertoRdz/.rvm/rubies/ruby-1.9.3-p194/bin/redcloth
4

1 回答 1

1

您需要按以下方式修复它:

require 'redcloth'

于 2012-09-06T08:21:34.293 回答