MacOS – Error Installing Jekyll on Mac

macosterminal

I'm trying to install Jekyll, a simple, blog-aware, static site generator. When I attempted to run the terminal command gem install jekyll, I got this error:

Error installing Jekyll.  Failed to build gem native extensions.

I then tried to update my RubyGems, using the command sudo gem update --system. That didn't work. Hopefully, I don't have to re-install Ruby. What a headache that would be!

Best Answer

Following Seth Warburton's steps on Install Jekyll in OSX Mavericks, try adding sudo to the install command:

sudo gem install jekyll

If you need to update or re-install Ruby, consider using an isolated edition via brew.