Installing Jekyll via Bash on Ubuntu on Windows 10
Installing Jekyll via Bash on Ubuntu on Windows 10
This post is from 2016 and may be out of date. Ruby 2.3 and Python 2.7 are long past end-of-life; see the current Jekyll installation guide.
Here’s what worked for me.
Ruby
from Dave Rupert
1
2
3
4
$ sudo apt-add-repository ppa:brightbox/ruby-ng
$ sudo apt update
$ sudo apt install ruby2.3 ruby2.3-dev ruby-switch
$ ruby -v
Python 2.7.12
from tecadmin
1
2
3
4
5
6
7
8
$ sudo apt-get install build-essential checkinstall
$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
$ cd /usr/src
$ sudo wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz
$ sudo tar -xzf Python-2.7.12.tgz
$ cd Python-2.7.12
$ sudo ./configure
$ sudo make altinstall
Jekyll
from Jekyll
1
2
3
4
5
6
$ sudo gem install jekyll
$ sudo gem install jekyll bundler
$ sudo gem install minima
$ sudo gem install jekyll-feed
$ cd /mnt/d/git/grishagin.github.io
$ jekyll new .
Run
1
$ jekyll serve
After that, navigate to http://localhost:4000/ in your browser.
General Notes
- For bash formatting, ```console works much better than ```bash.
- Command
jekyll serveused to require a--no-watchoption when run in a linux subsystem on Windows (i.e. every content alteration would require re-serving). As of Nov 2017, this is no longer the case.
This post is licensed under CC BY 4.0 by the author.