0
我想在ruby中安装宝石,因为我在开始红宝石书,我需要安装redcloth当我在终端上安装它似乎安装,但是当我更改为irb发生这种情况红宝石不能加载这样的文件mac MLion
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
我也是这样做的:/ –