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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容