0

我只是为了让你知道,但我在命令提示符下Ruby22-x64成功安装了 RedCloth-4.2.9 。gem install RedCloth当我尝试时require 'rubygems'我得到=>false这是正常的,因为它已经加载了,但是当我尝试require 'RedCloth这是以下错误代码时,我得到:

irb(main):001:0> require 'RedCloth'
LoadError: cannot load such file -- 2.2/redcloth_scan

Couldn't load 2.2/redcloth_scan

The $LOAD_PATH was:
C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/RedCloth-    4.2.9
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/RedCloth-4.2.9/lib
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/RedCloth-    4.2.9/lib/case_sensitive_require

C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/RedCloth-4.2.9/ext
C:/Ruby22-x64/lib/ruby/site_ruby/2.2.0
C:/Ruby22-x64/lib/ruby/site_ruby/2.2.0/x64-msvcrt
C:/Ruby22-x64/lib/ruby/site_ruby
C:/Ruby22-x64/lib/ruby/vendor_ruby/2.2.0
C:/Ruby22-x64/lib/ruby/vendor_ruby/2.2.0/x64-msvcrt
C:/Ruby22-x64/lib/ruby/vendor_ruby
C:/Ruby22-x64/lib/ruby/2.2.0
C:/Ruby22-x64/lib/ruby/2.2.0/x64-mingw32
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/RedCloth-   4.2.9/lib/RedCloth.
rb:13:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:12
8:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:12
8:in `rescue in require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39
:in `require'
    from (irb):1
    from C:/Ruby22-x64/bin/irb:11:in `<main>'
irb(main):002:0>

我不知道是不是 RedCloth 的版本可能会这样做?还是某种路径错误?不过,我真的在这里寻求帮助!请!

4

1 回答 1

0

我必须通过创建一个2.2要包含的文件夹来更改路径,redcloth_scan.so然后我让它工作了!

感谢您的链接@Casper

于 2015-05-31T17:50:50.437 回答