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 Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Set up Git and Add Gems

Ashna Dabas
Ashna Dabas
3,737 Points

permission denied error while installing nokogiri 1.6.1.2

The error is as follows:

While executing gem ... (Errno::EACCES) Permission denied - /usr/local/rvm/gems/ruby-1.9.3-p392/build_info/nokogiri-1.6.1.info

3 Answers

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Ashna Dabas try running sudo gem install nokogiri --version=1.6.1 then running bundle install again and let us know if that helps.

Unfortunately this did not work for me. I keep getting an error the bundler cannot continue, and to make sure nokogiri succeeds before bundling

Hey Jason Seifer I fixed the issue by leaving the treehouse VM (exit) and then running the command from the regular terminal. It worked fine that way. (Everything installed).

Check out this answer on stackoverflow.com This might solve your issue.

http://stackoverflow.com/questions/21371459/why-doesnt-nokogiri-install-ubuntu-12-04-rbenv