Welcome to the Treehouse Community
Looking to learn something new?
Hello, new to Ruby and started the tutorials but quickly come stuck. upon doing rails new treebook i get the following error:- Errni::EAGGES: Permission denied - C:/RailsInstaller/Ruby1.9.3/bin/rake.bat An error occurred while installing the rake <10.1.0>, and Bundler cannot continue. Any Advice? Thanks
James Barnett39,199 Points
There's not much context about what you typed before you got that error. My guess you don't have permissions to write files to where that program was trying to the location it was trying to write them to. Try using Run as Administrator.
I am running windows, i have tried running CMD by right click and run as admin. I am unable to do anything. The video course Build a simple ruby on rails application, these are the things i have tried "rvm use 1.9.3 and i get the error 'rvm' is not recognized as an internal or external command. I then created a new directory which i do have permission to write to and get the error from original message above. I might add the tutor on this video seems to fly through the intro without much guidance which is a stark contrast from all the other tutors on here. Any advice or other questions you need to ask would be great thanks for responses above guys.
"Permission denied" is usually solved by using the sudo command before the command you're trying to complete. For example, if you're getting a permission denied error when running gem install rails, you'd instead run sudo gem install rails.