Ruby
· One min read
Installing
gem sources -l
gem sources --remove https://ruby.taobao.org/
gem sources --add https://gems.ruby-china.com/
Installing on M1 Apple for macOS 13 Ventura
brew install chruby ruby-install
Next, if you’re on an Apple Silicon Mac (M1 or M2), you need to check which version of the Apple Command Line Tools (CLT) or Xcode you have:
brew config
Look for the lines at the bottom that start with CLT:
and Xcode:
. If either one of them starts with 14
, then you’ll need to install Ruby like this:
ruby-install ruby -- --enable-shared
Otherwise, don’t use any extra options:
ruby-install ruby