visit
macOS pre-installed ruby it’s quite unusable to use modern ruby tools, during time I struggled to have a proper setup for it. Since I found myself installing on new machines and everytime I have to remember wich way it worked better I’m writing this as a refernce primarly for me, but I am sure it could be helpful for others too.
If you develop on a mac and you haven’t already installed you are mad.
/usr/bin/ruby -e "$(curl -fsSL //raw.githubusercontent.com/Homebrew/install/master/install)"
We’ll need a ruby version manager to remain sane I found to be the less evil:
brew install rbenv ruby-build
Add this to your .bashrc
or whatever your poison is to load bash or zsh or ???:
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
rbenv install 2.4.1rbenv global 2.4.1
gem install fastlane
this way you can install also cocoapods
, for example, and remain sane.
is how hackers start their afternoons. We’re a part of the family. We are now and happy to opportunities.
To learn more, , , or simply,
If you enjoyed this story, we recommend reading our and trending tech stories. Until next time, don’t take the realities of the world for granted!