Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/20.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 on rails ruby 2.0.0[i386-mingw32]上的红布加载错误_Ruby On Rails_Ruby_Windows_Gem_Redcloth - Fatal编程技术网

Ruby on rails ruby 2.0.0[i386-mingw32]上的红布加载错误

Ruby on rails ruby 2.0.0[i386-mingw32]上的红布加载错误,ruby-on-rails,ruby,windows,gem,redcloth,Ruby On Rails,Ruby,Windows,Gem,Redcloth,当我将rails 3.2.13应用程序(在Win XP上)从ruby 1.9.3升级到ruby 2.0.0时,由于gem RedCloth(4.2.9 x86-mingw32)的原因,它崩溃了 消息:无法加载2.0/redcloth\u扫描(加载错误)。换句话说:/lib/2.0/redcloth\u scan。因此在gem中不存在 这个问题有什么解决办法吗 (不幸的是,RedCloth是唯一一个处理纺织品的Ruby工具。)如果必须使用RedCloth,您现在可能想继续使用1.9.3 您可以尝试

当我将rails 3.2.13应用程序(在Win XP上)从ruby 1.9.3升级到ruby 2.0.0时,由于gem RedCloth(4.2.9 x86-mingw32)的原因,它崩溃了

消息:
无法加载2.0/redcloth\u扫描(加载错误)
。换句话说:
/lib/2.0/redcloth\u scan。因此
在gem中不存在

这个问题有什么解决办法吗


(不幸的是,RedCloth是唯一一个处理纺织品的Ruby工具。)

如果必须使用RedCloth,您现在可能想继续使用1.9.3

您可以尝试:

  • 安装RedCloth-4.2.9:

    gem安装RedCloth——平台==ruby-V

  • 创建此目录:

    ruby\lib\ruby\gems\2.0.0\gems\RedCloth-4.2.9\ext\2.0

  • 将所有文件从以下位置复制到该目录:

    ruby\lib\ruby\gems\2.0.0\gems\RedCloth-4.2.9\ext\RedCloth\u扫描

  • 然后可以在Ruby 2.0中使用RedCloth。我试过使用jekyll 1.12.1,效果很好