Ruby无法加载这样的文件mac MLion

时间:2012-09-06 04:21:02

标签: ruby

我正在尝试在ruby中安装宝石,因为我正在关注开始的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

1 个答案:

答案 0 :(得分:1)

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

require 'redcloth'