Check out the latest javascript, tech and web development links from the daily linkblog.
Commands I ran to install rbenv and upgrade ruby versions
ruby programmingI was able to upgrade ruby versions. These are the commands I had to run. I will spare you the error messages and detours.
~ $ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
# Commands to install rbenv and latest ruby
brew doctor
brew update
brew install rbenv
echo export PATH=$HOME/.rbenv/shims:$PATH >> $HOME/.bashrc
brew upgrade ruby-build
rbenv install --list
rbenv install 2.5.1
echo 2.5.1 > ~/.rbenv/version
rbenv rehash
rbenv versions
gem env
gem install bundler
~ $ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin15]
# Re-install the gems in the blog installation directory
bundle install
bundle show jekyll
bundle exec jekyll serve
These are essentially the commands I ran, roughly in that order but it got a bit confusing somewhere in the middle.
I decided not to run rbenv init
, the only mandatory thing it does is add the shims folder to the PATH. So I just did that myself.
If you liked this post you might find my daily linkblog interesting, and there's also a weekly newsletter.
For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.
subscribe via RSS