V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Jekyll
http://jekyllrb.com/
Jekyll on GitHub
https://github.com/mojombo/jekyll
Jekyll-bootstrap
http://jekyllbootstrap.com/
Octopress
http://octopress.org/
danzwl
V2EX  ›  Jekyll

bundle install时出现错误怎么办

  •  
  •   danzwl · 2012-04-16 00:46:14 +08:00 · 5526 次点击
    这是一个创建于 4632 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Fetching gem metadata from http://rubygems.org/.......
    Using rake (0.9.2)
    Using RedCloth (4.2.8)
    Using posix-spawn (0.3.6)
    Using albino (1.3.3)
    Using blankslate (2.1.2.4)
    Using chunky_png (1.2.1)
    Using fast-stemmer (1.0.0)
    Using classifier (1.3.3)
    Using fssm (0.2.7)
    Using sass (3.1.5)
    Using compass (0.11.5)
    Using directory_watcher (1.4.0)
    Using ffi (1.0.9)
    Using haml (3.1.2)
    Using kramdown (0.13.3)
    Using liquid (2.2.2)
    Using syntax (1.0.0)
    Using maruku (0.6.0)
    Using jekyll (0.11.0)
    Using rubypython (0.5.1)
    Using pygments.rb (0.1.3)
    Using rack (1.3.2)
    Installing rb-fsevent (0.4.3.1) with native extensions
    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /Users/danzwl/.rvm/rubies/ruby-1.9.2-p318/bin/ruby extconf.rb
    creating Makefile
    CFLAGS='-isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7 -mdynamic-no-pic -std=gnu99 -Os -pipe -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wsign-compare -Wnewline-eof -Wconversion -Wshorten-64-to-32 -Wglobal-constructors -pedantic' /usr/bin/clang -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7 -mdynamic-no-pic -std=gnu99 -dead_strip -framework CoreServices -o '/Users/danzwl/.rvm/gems/ruby-1.9.2-p318/gems/rb-fsevent-0.4.3.1/bin/fsevent_watch' fsevent/fsevent_watch.c
    fsevent/fsevent_watch.c:1:10: fatal error: 'stdio.h' file not found
    #include <stdio.h>
    ^
    1 error generated.
    extconf.rb:59:in `<main>': Compilation of fsevent_watch failed (see README) (RuntimeError)


    Gem files will remain installed in /Users/danzwl/.rvm/gems/ruby-1.9.2-p318/gems/rb-fsevent-0.4.3.1 for inspection.
    Results logged to /Users/danzwl/.rvm/gems/ruby-1.9.2-p318/gems/rb-fsevent-0.4.3.1/ext/gem_make.out
    An error occured while installing rb-fsevent (0.4.3.1), and Bundler cannot continue.
    Make sure that `gem install rb-fsevent -v '0.4.3.1'` succeeds before bundling.
    4 条回复    1970-01-01 08:00:00 +08:00
    bitsmix
        1
    bitsmix  
       2012-04-16 00:59:43 +08:00
    没编译环境
    danzwl
        2
    danzwl  
    OP
       2012-04-16 01:28:40 +08:00
    @bitsmix 后来bundle update就好了
    LarryLv
        3
    LarryLv  
       2012-04-16 04:13:26 +08:00
    说句题外话,源用 http://ruby.taobao.org 会比较快一些。
    ddatsh
        4
    ddatsh  
       2012-04-16 04:15:17 +08:00
    gem sources --remove http://rubygems.org/
    gem sources -a http://ruby.taobao.org/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2781 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:37 · PVG 20:37 · LAX 04:37 · JFK 07:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.