Skip to content

Instantly share code, notes, and snippets.

@croz1007
Created March 21, 2014 10:51
Show Gist options
  • Save croz1007/9683690 to your computer and use it in GitHub Desktop.
Save croz1007/9683690 to your computer and use it in GitHub Desktop.
MyMBPro:~ skip1007$ gem install rails
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /Users/skip1007/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rails-4.0.4/README.md
@croz1007
Copy link
Author

Full error while running the rails new blog command to learn from tutorial.

Errno::EACCES: Permission denied @ rb_sysopen - /Users/skip1007/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rails-4.0.4/README.md
An error occurred while installing rails (4.0.4), and Bundler cannot continue.
Make sure that gem install rails -v '4.0.4' succeeds before bundling.
MyMBPro:blog skip1007$ gem install rails -v 4.0.4
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /Users/skip1007/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rails-4.0.4/README.md

When I run rails -v I get:

Could not find gem 'rails (= 4.0.4) ruby' in the gems available on this machine.
Run bundle install to install missing gems.

When I run ruby -v i get:
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment