6

I followed the official documentation:

enter image description here

It results in the following error:

orschiro@x230:~/Desktop$ sudo gem install jekyll bundler
Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
    ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.14/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20160906-27296-8m6gyz.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1
orschiro
  • 13,687

1 Answers1

5

After some searching around (in particular this), I ended up installing several packages:

$ sudo apt-get install gcc ruby ruby-dev libxml2 libxml2-dev libxslt1-dev zlibc zlib1g-dev

Disclaimer: Not sure all of those are needed but once I had those, it seemed to work.