RSS Amplifier

💥 Digital Confucius · Jan 31, 2024

Installing Ruby on Rails on a Macbook M3 Pro (2024)

0
Sign in to vote or save

Digital Confucius · 💥 Digital Confucius

Installing Ruby on Rails on a Macbook M3 Pro (2024), MacOS Sonoma (14.1)

Installing Ruby on Rails has been unexpectedly difficult on the M3. Here's how I hacked it together. It remains to be seen whether this is a viable long-term method.

Install Ruby:

brew reinstall ruby@2.7

brew link --overwrite ruby@2.7

which ruby

echo 'export PATH="<ruby installation location>/bin:$PATH"' >> ~/.zshrc

source ~/.zshrc

Install Rails:

gem install rails

which rails

echo 'export PATH="<rails installation location>/bin:$PATH"' >> ~/.zshrc

Validate Working:

rails new blog

Methods that didn't work for me in January 2024:

1. Installing Ruby 3.x vanilla with package manager (RVM, RBEnv, ASDF)

2. Installing Ruby 3.x with OpenSSL 3.2 via package manager (RVM, RBEnv, ASDF)

3. Installing Ruby 3.x with OpenSSL 3.1 via package manager (RVM, RBEnv, ASDF)

4. Installing Ruby 3.x with OpenSSL 1 via package manager (RVM, RBEnv, ASDF)

5. Installing Ruby 3.x with OpenSSL 1.1 via package manager (RVM, RBEnv, ASDF)

6. Installing Ruby 2.7 vanilla via package manager (RVM, RBEnv, ASDF)

Github Gist version

No posts

Read the original on digitalconfucius.substack.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.