在Windows 7上运行Jekyll

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...

有人能给我讲解一下吗?

3个回答

2
我按照这里的说明操作后,问题得到了解决。
安装完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的文件夹;
将\Ruby\lib\ruby\gems\1.9.1\gems\RedCloth-4.2.8\ext\redcloth_scan中的所有内容复制到刚刚创建的1.9文件夹中。

2
链接 404。请在您的答案中放置完整版本(以及链接),以避免此问题。 - John F. Miller

0

尝试卸载宝石并重新安装它们。首先安装RedCloth,然后再安装Textile,以确保能够看到RedCloth。

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


0

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


这个链接没有提到Windows。 - John F. Miller
你可以在Windows上安装Git Bash,然后按照说明进行操作,祝你好运! - jiguang

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接