Skip to content

Instantly share code, notes, and snippets.

@Mtillmann
Forked from Piyush3dB/jekyll-install.txt
Last active March 8, 2017 11:05
Show Gist options
  • Save Mtillmann/7eafe8f0c5be0caebecc32aae6a72437 to your computer and use it in GitHub Desktop.
Save Mtillmann/7eafe8f0c5be0caebecc32aae6a72437 to your computer and use it in GitHub Desktop.
Jekyll 3.2.1, Ruby 2.2.3 install on Ubuntu 14.04
apt-get install -y libssl-dev libreadline-dev zlib1g-dev
# install missing deps on mark's vagrant basebox to avoid fail at 99% :D
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
rbenv install -v 2.2.3
rbenv global 2.2.3
ruby -v
echo "gem: --no-document" > ~/.gemrc
gem install bundler
gem install jekyll
ruby -v
gem -v
jekyll new my-awesome-site
jekyll -v
bundle install
bundle exec jekyll serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment