Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.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无法在mac MLion上加载这样的文件_Ruby - Fatal编程技术网

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

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

我正在尝试在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