Mac Setup for Ruby / JS development

New job! More later on that. They shipped me a company laptop and I wanted to go through and document the essensial tools that I used to get up and running for Ruby and Rails Development.

  1. Install Brave
    This is my default browser these days.
  2. Install iterm2
    Default mac terminal won’t do
  3. Install xcode
    This one seems like it take half a day.
  4. Open Xcode and agree to license.
  5. Install Oh My Zsh
  6. Install Homebrew
  7. Install ruby-build and rbenv via homebrew
      brew install rbenv  ruby-build

Follow the post-install instructions, these might become dated but here are the three I used as of Oct 30,2020

  echo "export LDFLAGS=\"-L/usr/local/opt/readline/lib\"" >> ~/.zshrc
  echo "export CPPFLAGS=\"-I/usr/local/opt/readline/include\"" >> ~/.zshrc
  echo "export RUBY_CONFIGURE_OPTS=\"--with-openssl-dir=/usr/local/opt/openssl@1.1\"" >> ~/.zshrc
  1. Find latest ruby version latest ruby and set to global.
      $ rbenv install -l

Install latest (this takes a while):

$ rbenv install 2.7.2

Set the global rbenv to this version:

rbenv global 2.7.2

After this, there will be other tools to install but this is my base setup.