Adam Johnson
Adam Johnson

Reputation: 43

Mavericks 10.9 trouble installing gem

I've been struggling to install jekyll on my mac, don't know much about ruby or configuring/debugging these messages.

I'm getting the following when running "sudo gem install jekyll"

Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
make: *** No rule to make target `/include/universal-darwin13/ruby/config.h', needed by `porter.o'.  Stop.


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2/ext/gem_make.out

"gcc --version" returns the following:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

Upvotes: 4

Views: 2024

Answers (2)

wooinvi
wooinvi

Reputation: 21

use this command :

$ sudo xcode-select -r 

then

$ sudo gem install jekyll

Hope this help you.

Upvotes: 2

user1368095
user1368095

Reputation:

Besides upgrading xcode, as rayrashmi suggested, you have to actually open it so the command-line tools are properly installed.

(I am assuming you installed the command-line tools from xcode before upgrading to mavericks, if you haven't they're under Preferences → Downloads → Components, official info here.)

Then, just upgrade gem if you haven't already done so and install jekyll and any other library you were using, like pigments.

As they say, "worked for me."

Upvotes: 0

Related Questions