Ruby

https://www.notion.so/Ruby-c28cfb75de304d5fabe36c7dc5f7fe0f

Installing

bookmark

1
2
3
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

1
2
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:

1
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:

1
ruby-install ruby -- --enable-shared

Otherwise, don’t use any extra options:

1
ruby-install ruby
This post is licensed under CC BY 4.0 by the author.