Last active
June 21, 2017 22:12
-
-
Save Piyush3dB/b7daa3f178746c7d7479ca1cbd694160 to your computer and use it in GitHub Desktop.
Jekyll 3.2.1, Ruby 2.2.3 install on Ubuntu 14.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
git clone git://github.com/sstephenson/rbenv.git .rbenv -> git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
You want line 2 and line 5 to reference the same folder.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
~/my-awesome-site$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
~/my-awesome-site$ jekyll -v
jekyll 3.2.1