Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Jekyll on Windows 7

Tags:

ruby

jekyll

I'm having an issue with running Jekyll on windows 7. When I run

jekyll

I get the following error

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

However RedCloth IS installed

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

Can anyone enlighten me?

like image 787
James Hughes Avatar asked Aug 29 '11 21:08

James Hughes


People also ask

Can you use Jekyll on Windows?

If you are using Windows 10 version 1607 or later, another option to run Jekyll is by installing the Windows Subsystem for Linux. You must have Windows Subsystem for Linux enabled. Make sure all your packages and repositories are up to date. Open a new Command Prompt or PowerShell window and type bash .


1 Answers

I followed the instructions here and that fixed my problem.

After gem install RedCloth run redcloth.bat from \Ruby\bin (replace \Ruby\ with the Ruby installation dir).

If it complains about not finding the path 1.9/redcloth_scan then do the following:

Create a dir named 1.9 in \Ruby\lib\ruby\gems\1.9.1\gems\RedCloth-4.2.8\ext

Copy everything from \Ruby\lib\ruby\gems\1.9.1\gems\RedCloth-4.2.8\ext\redcloth_scan in the 1.9 folder just created.

like image 71
huljas Avatar answered Oct 04 '22 06:10

huljas