My working environment

Setting up a new computer.

Here’s what you need to do.

Install Xcode Command Line Tools

  1. Check whether you have Xcode installed

     ```
     $ xcode-select -p
     ```
    
  2. Install Xcode Command Line Tools

     ```
     $ xcode-select --install
     ```
    

Configure git

Install Homebrew

Install Ruby

GPG

RVM

  1. Install RVM
$ \curl -L https://get.rvm.io | bash -s stable
  1. Restart the terminal
source ~/.rvm/scripts/rvm
  1. Test RVM configuration
shell
type rvm | head -n 1

Install Ruby

  1. $ rvm install ruby-2.4.1
    
  2. Verify the version of Ruby
$ ruby -v

RubyGems

  1. Show gems that need to be updated
$ gem outdated
  1. Update gems
$ gem update
  1. Install Bundler
$ gem install bundler
  1. Install Nokogiri
$ gem install nokogiri

Reference

Installing Ruby on Rails for Mac

Jekyll

  1. Install Jekyll
$ gem install jekyll
  1. Update Jekyll
$ gem update jekyll