Skip to content

Instantly share code, notes, and snippets.

@martinholub
Last active July 14, 2018 08:02
Show Gist options
  • Save martinholub/912622f79e9a5802a55d94cb5fd74f98 to your computer and use it in GitHub Desktop.
Save martinholub/912622f79e9a5802a55d94cb5fd74f98 to your computer and use it in GitHub Desktop.
Installing Jekyll on Linux

Setting up Jekyll on Linux

First, install Ruby and dependencies.
sudo apt-get install ruby ruby-dev build-essential

Create path for gems in your home.

echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME=$HOME/gems' >> ~/.bashrc
echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

Install jekyll and bundler.
gem install jekyll bundler bundle update jekyll gem update --system

Test with.
bundle exec jekyll --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment