安装 Jekyll 时出错 - 本机扩展构建 [英] Error Installing Jekyll - Native Extension Build

查看:23
本文介绍了安装 Jekyll 时出错 - 本机扩展构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装 jekyll 时遇到了一些问题.无法完全弄清楚如何修补丢失的链接.我认为这是对 Ruby 的更新,但 RVM 在安装 ruby​​ 的替代版本时也遇到了问题.

I'm having some trouble installing jekyll. Can't quite figure out how to patch the missing link. I think it's an update to Ruby, but RVM is having trouble installing alternate versions of ruby as well.

这是完整的帖子:

$ sudo gem install jekyll    

ERROR:  Error installing jekyll:
ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


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

这是否意味着我需要通过 rvm 更新我正在使用的 ruby​​ 版本?

Does this mean I need to update the version of ruby I'm using via rvm?

推荐答案

您的问题是您的系统不知道 make 位于何处,或者您没有安装它.解决此问题的最简单方法(以及您在尝试启动和运行 ruby​​ 系统时可能会遇到的其他问题)是安装 xcode.

Your problem is that either you system doesn't know where make is located at or you don't have it installed. The easiest way to fix this (and probably other issues you'll run into trying to get a ruby system up and running) is to install xcode.

您可以在 http://itunes.apple.com/获得它us/app/xcode/id497799835?ls=1&mt=12 为狮子.或者它以 CD 形式随您的计算机一起提供,用于早期版本.

You can get it at http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 for lion. Or it came on a CD with your computer for earlier versions.

如果您使用的是 Lion,请参阅下面的评论以获取有关如何在 Lion 上安装开发人员工具的链接.

If you're using Lion, please see comments below for a link to how to install developer tools on Lion.

这篇关于安装 Jekyll 时出错 - 本机扩展构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆