Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Chance Smith
6,525 PointsI'm having trouble installing RSpec to Gemfile.
I'm having trouble installing RSpec to Gemfile.
This is what I am getting: http://codeshare.io/s835C
What am I missing?
5 Answers

Jack Choi
11,420 PointsI think rspec requires nokogiri and nokogiri requires libiconv in your system. This is so common an issue that the Nokogiri team made a page to outline how to resolve it here: http://nokogiri.org/tutorials/installing_nokogiri.html#mac_os_x
Also, I notice you tried to install capybara but I think you've made a typo (an extra a between the p and the y)

Chance Smith
6,525 PointsThanks Jack
I feel like I am just stumbling around with the command lines hoping that something rings true.
Here I am confirming nokogiri is installed. I then [cd] to the project and try to [bundle] again. No dice

Jack Choi
11,420 PointsIt seems nokogiri still hasn't been installed properly:
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/Users/chester911cross/.rbenv/versions/2.0.0-p353/bin/ruby extconf.rb
Building nokogiri using packaged libraries.
-----
libiconv is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** extconf.rb failed ***
How did the install for libiconv go? I remember having to go through this a while back and I think I went with the Homebrew route. If you can provide the steps you went through to install libiconv I can try to help figure out what's wrong.

Chance Smith
6,525 PointsThe libiconv seamed to be fine here is me running it again.

Chance Smith
6,525 PointsI'm giving homebrew a shot after looking into it a bit. I'm following this:
http://www.createdbypete.com/articles/ruby-on-rails-development-setup-for-mac-osx/
I'll update in a bit.

Chance Smith
6,525 PointsTried with Homebrew too. This is driving me mad, ya no?

Moe Khatib
5,293 PointsI am having the exact same issue, I spent a good 6 hours trying to fix this, I gave up ever after! Drove me mad as well.