Martin Vích's blog


Hi I'm Martin Vích. For a long time I was working as a ASP.NET developer, now I'm focusing mainly on the front end.

How to install Ruby on Rails on Mac

  • Install homebrew
  • run xcode-select --install
  • Install & init rbenv with brew install rbenv && brew install rbenv && rbenv init
  • List available ruby versions with rbenv install -l
  • Install preferred version with rbenv install 2.5.1
  • Check installed versions with rbenv versions. There should be "system" and your installed version.
  • Set version you want to use with rbenv global 2.5.1
  • Verify with ruby -v
  • Ensure that rbenv will be automatically run by adding eval "$(rbenv init -)" to your ~/.bash_profile
  • Profit!