【问题标题】:RedCloth loaderror on ruby 2.0.0 [i386-mingw32]ruby 2.0.0 [i386-mingw32] 上的 RedCloth 加载错误
【发布时间】:2023-03-11 04:10:02
【问题描述】:

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

消息:couldn't load 2.0/redcloth_scan (LoadError)。换句话说:/lib/2.0/redcloth_scan.so 在 gem 中不存在。

有没有办法解决这个问题?

(不幸的是,RedCloth 是唯一处理 Textile 的 Ruby 工具。)

【问题讨论】:

    标签: ruby-on-rails ruby windows gem redcloth


    【解决方案1】:

    你可以试试:

    1. 安装 RedCloth-4.2.9:

      gem install RedCloth --platform==ruby -V

    2. 创建此目录:

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

    3. 将所有文件复制到该目录:

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

    然后您可以在 Ruby 2.0 中使用 RedCloth。我尝试使用 jekyll 1.12.1,并且有效。

    【讨论】:

      【解决方案2】:

      如果您必须使用 RedCloth,您可能希望暂时使用 1.9.3。

      RedCloth doesn't seem to support 2.0.0 yet.

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-03-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-11-30
        • 1970-01-01
        相关资源
        最近更新 更多