6

我在 Windows 7 上运行 Jekyll 时遇到问题。当我运行时

jekyll

我收到以下错误

C:\temp\jekyll\kouphax.github.com> jekyll
Configuration from C:/temp/jekyll/kouphax.github.com/_config.yml
Building site: C:/temp/jekyll/kouphax.github.com -> C:/temp/jekyll/kouphax.github.com/_site
unit-testing
You are missing a library required for Textile. Please run:
  $ [sudo] gem install RedCloth

ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Missing dependency: RedCloth

但是安装了 RedCloth

C:\temp\jekyll\kouphax.github.com> gem install RedCloth
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed RedCloth-4.2.8
1 gem installed
Installing ri documentation for RedCloth-4.2.8...
Installing RDoc documentation for RedCloth-4.2.8...

任何人都可以启发我吗?

4

3 回答 3

2

我按照此处的说明进行操作,解决了我的问题。

在 gem 安装 RedCloth 之后,从 \Ruby\bin 运行 redcloth.bat(将 \Ruby\ 替换为 Ruby 安装目录)。

如果它抱怨找不到路径 1.9/redcloth_scan 则执行以下操作:

在 \Ruby\lib\ruby\gems\1.9.1\gems\RedCloth-4.2.8\ext 中创建一个名为 1.9 的目录

复制刚刚创建的 1.9 文件夹中的 \Ruby\lib\ruby\gems\1.9.1\gems\RedCloth-4.2.8\ext\redcloth_scan 中的所有内容。

于 2011-11-08T17:56:12.763 回答
0

尝试卸载 gem 并重新安装它们。首先是 RedCloth,然后是 Textile,这样它就可以确保看到 RedCloth。

(我是红宝石的新手,所以这甚至可能没有意义,但似乎值得一试。)

于 2011-09-04T01:47:23.377 回答
0

尝试下载并重新安装最新的 ruby ​​,然后按照此说明进行操作,祝你好运!

于 2012-10-07T10:35:21.963 回答