I installed Rails. While creating a new application with the command:
rails new myapp
The following error messages occur:
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (10.1.0)
Errno::EACCES: Permission denied - /usr/local/lib/ruby/gems/2.0.0/build_info/rake-10.1.0.info
An error occurred while installing rake (10.1.0), and Bundler cannot continue.
Make sure that `gem install rake -v '10.1.0'` succeeds before bundling.
The version of my gem is 4.0.0.
gem install rake -v '10.1.0' --traceand post the output here?sudoissue ...sudomay be resolve the issue.