安装Jekyll - 原生扩展版本时出错 [英] Error Installing Jekyll - Native Extension Build

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

问题描述

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



继承人全文:

  $ sudo gem install jekyll 

错误:安装jekyll时出错:
错误:无法构建gem本机扩展。

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb无法找到ruby的头文件在/ System / Library / Frameworks / Ruby.framework / Versions / 1.8 / usr / lib / ruby​​ / ruby​​.h


Gem文件将保留安装在/Library/Ruby/Gems/1.8/gems/ fast-stemmer-1.0.1进行检查。
结果记录到/Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1/ext/gem_make.out

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

你的问题是,你的系统不知道make的位置在哪里,或者你没有安装它。解决这个问题的最简单方法就是安装xcode,并且可能会遇到其他问题(试图让ruby系统启动并运行)。

您可以在 http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 为狮子。如果您使用的是Lion,请参阅下面的注释以获取如何在Lion上安装开发人员工具的链接。


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.

Heres the full post:

$ 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

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

解决方案

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.

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.

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

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

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