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 trialabdi ali
10,920 Pointsinstalling rails
Last login: Tue Jun 9 15:25:12 on console abdis-MacBook-Air:~ abdiali$ gem install bundler ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory. abdis-MacBook-Air:~ abdiali$ cd /Library/Ruby/gems abdis-MacBook-Air:gems abdiali$ ls 2.0.0 abdis-MacBook-Air:gems abdiali$ ls -l total 0 drwxr-xr-x 7 root wheel 238 Sep 10 2014 2.0.0 abdis-MacBook-Air:gems abdiali$ a+w gems -bash: a+w: command not found abdis-MacBook-Air:gems abdiali$ chomd a+w gems -bash: chomd: command not found abdis-MacBook-Air:gems abdiali$ clear
1 Answer
Tom Sager
18,987 PointsYou have the right idea, but there is a typo: it should be chmod, not chomd.
For a cleaner approach, you might look at the sudo command rather than adding global write permissions.
abdi ali
10,920 Pointsabdi ali
10,920 Pointsi tried to install both gems and bundler but i am getting the file permision is not allowed