首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能要求带irb的RedCloth

不能要求带irb的RedCloth
EN

Stack Overflow用户
提问于 2015-05-30 23:56:15
回答 1查看 398关注 0票数 0

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

代码语言:javascript
复制
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的版本在做这些事情?或者是某种路径错误?不过,我真的想在这里寻求一些帮助!请!

EN

回答 1

Stack Overflow用户

发布于 2015-06-01 01:50:50

我必须通过创建一个包含redcloth_scan.so2.2文件夹来更改路径,并且我让它工作了!

感谢链接@Casper

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30548201

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档