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

johnstewart
johnstewart
1,104 Points

Missing Libiconv

Similar issue to Michael Bukowski's in the ticket "Bundle Issue with odot." Except it looks like I'm missing libiconv, not libxml2. I tried the xcode-select remedy Jason mentioned in his response, but that didn't help me. Below is the error message I get upon trying to install nokogiri v 1.6.2.1:

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 *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

5 Answers

Artem Prytkov
Artem Prytkov
11,932 Points

Try install build-essentials before.

On Ubuntu: sudo apt-get install build-essentials

johnstewart
johnstewart
1,104 Points

Just ran "sudo install build-essentials" (used sudo to make sure I wouldn't get permissions issues) -- the command returned:

usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ...

Then, I got the same error again trying to install nokogiri.

Artem Prytkov
Artem Prytkov
11,932 Points

What OS you use? If Ubuntu, then you forgot to type apt-get

Full command: sudo apt-get install build-essentials

johnstewart
johnstewart
1,104 Points

Sorry, should have specified -- I'm on OS X Mavericks (10.9.3, specifically). So I shouldn't have needed to append apt-get, right?

Artem Prytkov
Artem Prytkov
11,932 Points

No, apt-get is Ubuntu package manager. I`m not familiar with OS X (afaik its package manager called homebrew), but I think steps should be similar