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

好久不见. 提交于 2019-12-01 06:36:04

I got this error while installing Jekyll on Linux (Mint 17, which is based on Ubuntu 14.04).

I eventually found the solution here. I needed both the ruby-dev package and nodejs (the latter due to a bug in Jekyll).

sudo apt-get install ruby ruby-dev make
sudo gem install jekyll --no-rdoc --no-ri
sudo apt-get install nodejs    

I ran into this problem too. Running the following installed Jekyll for me:

$ \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled

$ sudo gem install jekyll

This installs RVM, updates Rails and installs Jekyll.

BTW - Most of the posts I've found indicate it's a problem with Xcode not having the developer tools installed. I have a newer MacBook Pro on which this stuff was installed by default, so attempting to install the Xcode dev tools did nothing for me (unlike the above, which did everything I needed).

try

gem update

then

gem install jekyll

And you may want to try with Ruby 1.9.3 and compatible DevKit.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!