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

HTML Build a Blog with Jekyll and GitHub Pages Getting Started with Jekyll Installing Jekyll

Kristen Mollica
Kristen Mollica
2,809 Points

Error installing Jekyll

After running: sudo gem install jekyll, I get the following error message: ERROR: Error installing jekyll: ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb

mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/yajl-ruby-1.2.1 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/gems/yajl-ruby-1.2.1/ext/yajl/gem_make.out

Any ideas how to install it?

3 Answers

Kristen Mollica
Kristen Mollica
2,809 Points

Thanks for your response, Salman! The development environment on my system wasn't set up correctly, and I didn't know because this is my first time working with gem installation. My fiancee fixed it by following the steps for 10.10 OSX on installrails.com.

Awesome! Hope everything is working now on your side. ;)

Hi Kristen,

I had similiar issue few days ago, I assume you also using Ubuntu. The problem is they don't know where to find dev package.

Let's type : sudo apt-get install ruby-dev

Hope it will fix that issue.

Craig Thompson
Craig Thompson
1,510 Points

I had my own error setting it up I'd done it originally on Windows but am a Mac noob. For some reason the gems didn't install but following what I could find about it online, I installed Xcode and reinstalled jekyll which worked with the gems installing correctly. I don't really understand it but might help someone...