# Install Ruby # ###### tags: `language` `ruby` ## Install openssl & RVM ```bash brew install gpg2 curl -sSL https://rvm.io/mpapis.asc | gpg --import - curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - rvm get stable ``` ## Install ruby-2.6.3 ```bash # Mac rvm install "ruby-2.6.3" --with-openssl-dir=$(brew --prefix openssl@1.1) ``` 參考:https://ruby-china.org/topics/39879 ## Install ruby-2.4.0 ```bash # Mac rvm install "ruby-2.4.0" --with-openssl-dir=$(brew --prefix openssl@1.1) ```