Setting up a new computer.
Here’s what you need to do.
Install Xcode Command Line Tools
-
Check whether you have Xcode installed
``` $ xcode-select -p ```
-
Install Xcode Command Line Tools
``` $ xcode-select --install ```
Configure git
Install Homebrew
Install Ruby
GPG
RVM
- Install RVM
$ \curl -L https://get.rvm.io | bash -s stable
- Restart the terminal
source ~/.rvm/scripts/rvm
- Test RVM configuration
shell
type rvm | head -n 1
Install Ruby
-
$ rvm install ruby-2.4.1
- Verify the version of Ruby
$ ruby -v
RubyGems
- Show gems that need to be updated
$ gem outdated
- Update gems
$ gem update
- Install Bundler
$ gem install bundler
- Install Nokogiri
$ gem install nokogiri
Reference
Installing Ruby on Rails for Mac
Jekyll
- Install Jekyll
$ gem install jekyll
- Update Jekyll
$ gem update jekyll