Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Setting Up?

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

4 Answers

James Barnett
James Barnett
39,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.

James Barnett any more help on this please? Still stuck

James Barnett any more help on this please? Still stuck

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.

James Barnett
James Barnett
39,199 Points

For one thing you don't need to use **rvm use* on Windows, that's specific to OS X/Linux. However I haven't done the Ruby on Rails courses myself so I don't have much to offer here.

A quick search of the forum yielded this thread which you might find to be of some use. https://teamtreehouse.com/forum/unofficial-guide-to-actually-finishing-the-ror-intro-tutorial

Thanks i will have a look at that link. That's what i mean about the tutor quality. It was a little to fast paced for a beginner course. Seems to me like some steps where missed in the video.

Jason Seifer any advice on this please?

"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.

James Barnett
James Barnett
39,199 Points

Scott Magdalein - The original poster referenced a c:** drive & a **.bat file which leads me to believe it's a computer running Windows not a OS X or Linux. Windows of course doesn't support sudo it uses Run As Administrator

I stand eloquently and appropriately corrected. Please disregard my answer. Thanks James!