-
-
Save meaganewaller/5620662 to your computer and use it in GitHub Desktop.
Errno::EACCES: Permission denied - /Users/meaganwaller/.rvm/gems/ruby-1.9.3-p392/build_info/json-1.7.7.info | |
An error occurred while installing json (1.7.7), and Bundler cannot continue. | |
Make sure that `gem install json -v '1.7.7'` succeeds before bundling. | |
source 'http://rubygems.org' | |
gem 'rspec' | |
gem 'json', '~> 1.7.7' | |
gem 'pry' | |
gem 'guard-rspec' | |
gem 'simplecov', :require => false, :group => :test |
Also you can try just doing an rvm implode
and then re-install rvm.
What does:
ls -ld /Users/meaganwaller/.rvm/gems/ruby-1.9.3-p392/build_info
ls -ld /Users/meaganwaller/.rvm/gems/ruby-1.9.3-p392/
ls -ld /Users/meaganwaller/.rvm/gems/
ls -ld /Users/meaganwaller/.rvm/
Show?
Curious to see what the file permissions (read/write/execute) and file ownership is.
Also with rvm you rarely (if ever?) need/want to "sudo gem" anything. This might be part of the problem. The "ls" steps above (to show us ownership and file permissions) might tell us if this is what happened. @cpuguy83's suggestion of imploding your RVM install may also be good, but might take longer than just fixing ownership and permissions.
One should never do use sudo on a local rvm.
Even on a system-wide you can add your user to the rvm group and shouldn't need to use sudo either.
I'm finding I loathe system-wide RVM, though.
It looks like bundler can't write to your gems folder. Check the permissions on it... maybe just do: