Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Installing Jekyll - Native Extension Build

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?

like image 868
Robb Schiller Avatar asked May 23 '12 18:05

Robb Schiller


1 Answers

Ubuntu

  1. sudo apt-get install ruby-dev
  2. gem install jekyll
like image 53
Nmzzz Avatar answered Sep 26 '22 03:09

Nmzzz