Mavericks 10.9 gem installation problem

I am trying to install jekyll on my Mac, I don’t know much about ruby ​​or setting up / debugging these messages.

I get 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
+4
source share
2 answers

use this command:

$ sudo xcode-select -r 

then

$ sudo gem install jekyll

Hope this helps you.

+2
source

Besides updating xcode, as rayrashmi suggested, you should actually open it so that the command line tools are installed correctly.

( , xcode mavericks, Preferences → Downloads → Components, official info here.)

gem, , jekyll , , .

, " ".

0

All Articles