Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS Rails installation permissions #3

Open
taslater opened this issue Apr 1, 2022 · 0 comments
Open

MacOS Rails installation permissions #3

taslater opened this issue Apr 1, 2022 · 0 comments

Comments

@taslater
Copy link

taslater commented Apr 1, 2022

gem install rails permissions error:

➜  ~ gem install rails
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/3.1.0/gems/rails-7.0.2.3/README.md

It wanted me to run sudo gem install rails but that sounded like a bad idea.

My solution:

I installed the Frum Ruby version manager. These instructions were helpful.

Switching global Ruby from the Homebrew installation to the Frum installation using frum global 3.1.1 (or whatever is the latest Ruby version) allowed me to use gem install rails without sudo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant