📒
Notes
  • 💻macOS Setup
    • Homebrew
    • Terminal
    • Software
    • Node.js
    • Ruby
    • GPG
    • Misc
  • Using HTTPS for local development
Powered by GitBook
On this page
  • Install version manager - rbenv
  • Install the latest stable version
  • Install CocoaPods
  1. macOS Setup

Ruby

PreviousNode.jsNextGPG

Quickly setup with rbenv

Install version manager -

brew install rbenv
# run this and follow the printed instructions:
rbenv init

Install the latest stable version

# List latest stable versions
rbenv install --list

# Install a specific version
rbenv install 3.2.2

# Activate a specific version
rbenv gloabl 3.2.2

Install CocoaPods

Sudo-less installation

Add following line to ~/.zshrc

export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH

And then,

source ~/.zshrc

Finally,

gem install cocoapods
💻
rbenv