我关注了官方文档:
这会导致以下错误:
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
答案1
经过一番搜索(特别是这),我最终安装了几个软件包:
$ sudo apt-get install gcc ruby ruby-dev libxml2 libxml2-dev libxslt1-dev zlibc zlib1g-dev
免责声明:不确定是否需要所有这些都,但一旦我拥有了它们,它似乎就起作用了。