Install jekyll on Ubuntu 14.04

Install jekyll on Ubuntu 14.04

1. Install Ruby


We can directly use apt-get to install Ruby, but Ruby on Ubuntu 14.04 is at 1.9 version, higher than 2.2 version is expected.

- download ruby package, I chose the 2.3 version. Click the link to download it or use wget:

sudo wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.gz

- utar it(I just utar it to ~/).

tar -xzvf ruby-2.3.0.tar.gz

- change workdir to where you utar the package, configure, make, make install.

./configure

make

sudo make install

- check the installed version

ruby -v

2. Install rubygems


- download it from [official site](https://rubygems.org/pages/download), or use git(I git clone the package to the ~/Downloads).

cd ~/Downloads/ && git clone https://github.com/rubygems/rubygems.git

there are something necessary in a folder named bundler in this repository, which couldn't be downloaded

(I tried it, but failed, there is nothing in the bundler I download, you can have a try), you can download/git them by this command:

git clone https://github.com/bundler/bundler.git

then you should move them from the folder you download to ~/Downloads/rubygems/bundler/.

change workdir to the rubygems.

ruby setup.rb (you may need admin/root privilege)

3. Install Jekyll

- install jekyll and check the version

sudo gem install Jekyll

jekyll --version

你可能感兴趣的:(Install jekyll on Ubuntu 14.04)