Error Installing Jekyll - Native Extension Build

Robb Schiller picture Robb Schiller · May 23, 2012 · Viewed 29.4k times · Source

I'm having some trouble installing jekyll. Can't quite figure out how to patch the missing link. I think it's an update to Ruby, but RVM is having trouble installing alternate versions of ruby as well.

Heres the full post:

$ sudo gem install jekyll    

ERROR:  Error installing jekyll:
ERROR: Failed to build gem native extension.

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


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1/ext/gem_make.out

Does this mean I need to update the version of ruby I'm using via rvm?

Answer

Nmzzz picture Nmzzz · Jul 28, 2012

Ubuntu

  1. sudo apt-get install ruby-dev
  2. gem install jekyll