1

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. Also, I attempted to install using sudo -s (as admin).

Hopefully, I don't have to re-install Ruby. What a headache that would be!

5
  • 1
    Have you tried sudo gem install jekyll? Btw, installing Ruby via RVM seems to be a better way in the first place.
    – Yi Zeng
    Jun 5, 2014 at 2:43
  • In your example, you say you use sudo to update ruby, but not to install Jekyll. So use sudo for that too. That has always worked for me. Jun 5, 2014 at 20:44
  • I did use sudo to install Jekyll: sudo -s gem install jekyll. Someone on another forum suggested I follow <a href="internet-inspired.com/wrote/install-jekyll-in-osx-mavericks/…> steps, and install Jekyll afterward; however, do I absolutely need to install Xcode to successfully install Jekyll? Never heard that before.
    – Matthew
    Jun 6, 2014 at 0:55
  • I have never heard it before either. But I can't really tell, because the most recent version of Xcode is always on my system. Jun 7, 2014 at 12:59
  • But it might be true that you need the Xcode command line tools, as the article says. Jun 7, 2014 at 13:03

1 Answer 1

0

What version of OS X are you using?

Try this from your shell to install xcode command line tools xcode-select --install

Then launch xcode and agree to the license. Then try again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.