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
Dillon Hinson
2,939 PointsTrouble with bundler while creating "Treebook" application with Rails - MAC
I am doing the project "Build a Simple Ruby on Rails Application" and in the video "Generate a Rails Application" we are told to open terminal, create our Projects directory, and then type into Terminal "rails new treebook". I believe I have successfully created the Projects directory, but after entering "rails new treebook", Terminal runs a lists of "Creates", beginning with "ReadMe.rdoc" and ending with "vendor/plugins/gitkeep". But the last thing it does is "Run: Bundle Install". This is where I have a problem. When it is finished, I get a message saying:
Errno::EACCES: Permission denied - /Users/Dillon H/.bundler
An error occurred while installing rake (10.0.4), and Bundler cannot continue.
Make sure that `gem install rake -v '10.0.4'` succeeds before bundling.
I then type "gem install rake", but receive another error message:
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - /Users/Dillon H/.gem/ruby/1.9.1/cache/rake-10.0.4.gem
What can I do to get past this problem? When it says 'No such file or directory'...do I need to create another directory? Is there something else I need to install? And what about permissions? I know how to check permissions, but don't quite understand how they are relevant here. I am the admin and sole user of my Mac.
Thank you SO much!
3 Answers
Jason Seifer
Treehouse Guest TeacherHey Dillon,
That's a really strange error. It means that ruby can't write to the .bundle or .gem directories in your home folder, which shouldn't really happen. Try opening Disk Utility and doing a repair of disk permissions then run that all again.
Dillon Hinson
2,939 PointsJason,
I did an uninstall of rvm, cleared out all related files, repaired disk permissions, then reinstalled Rails using RailsInstaller...but I am having the exact same problem. Also, this time I encountered more problems. When installing rails, at the very end, after I am prompted to enter my password for my Mac, I get an error message saying "unknown login: Dillon" after some other text. In addition, after going ahead and finishing the install despite that message, when I go into terminal to check if everything is installed right, I get the correct responses. But when I type in "rvm use 1.9.3", I get this:
mkdir: /usr/local/rvm/log/ruby-1.9.3-p392: Permission denied
Then the same problem occurs as mentioned in my first post. I am starting to get frustrated. I checked out Cloud9 as a means of doing this treebook project, but when selecting to use Rails, it's nothing but more error messages.
Jason Seifer
Treehouse Guest TeacherHey Dillon,
Based on all those permission and user errors, it seems like something may be wrong with your install of Mac OS X. Try typing "sudo rvm use 1.9.3" and typing in your password when prompted.