Ruby无法在mac MLion上加载这样的文件
我正在尝试在ruby中安装gems,因为我正在阅读ruby的入门书,当我在终端上安装它时,我需要安装redcloth,但当我更改为irb时,会发生这种情况Ruby无法在mac MLion上加载这样的文件,ruby,Ruby,我正在尝试在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/r
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