在OSX Yosemite上安装Jekyll

时间:2015-02-09 22:26:49

标签: macos rubygems jekyll

我在计算机上安装Jekyll时遇到问题,并希望有人可以帮我排除故障。我已经详细介绍了我在下面回顾过的Stack文档。

以下是我收到的错误:

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 -r ./siteconf20150209-80771-11wqezc.rb extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/universal-darwin14/ruby/config.h', needed by `porter.o'.  Stop.

make failed, exit code 2

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/extensions/universal-darwin-14/2.0.0/fast-stemmer-1.0.2/gem_make.out

首先我确保gem已更新link):

gem update --system
Latest version currently installed. Aborting.

接下来,我确保根据此堆栈答案(link)安装了xcode。

如果有人能指出我正确的方向,我会非常感激。

0 个答案:

没有答案