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
Christian A. Castro
30,501 Pointsunable to install Cocoapods
My version is 10.11.6 OS X El Capitan..
I went to the terminal and I typed: gem uninstall cocoapods and hit enter and then I typed: gem install cocoapods
but then it says: Error While executing gem. You don't have write permissions for the/Library/Ruby/Gems/2.0.0/directory.
am I forgetting another step guys, help !! thank in advance..
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! Because it is saying that permission is denied it's likely that you'll have to run this command as a super user. To do this, use sudo before the command you're issuing. It will likely ask you for your password to the computer you're logged into. So try this: sudo gem install cocoapods. Hope this helps!
Christian A. Castro
30,501 PointsChristian A. Castro
30,501 PointsJennifer Cordell thank you!!! it works.. the last one says: fetching: activesupport - 5.0.0.1. gem (100%) Error: Error installing cocoapods: active support requires Ruby version >= 2.2.2.
I mean everything went alright.. just the last one .. thank you again !!!