在Mac OS Leopard(10.5.8)上安装Jekyll

时间:2019-01-01 09:31:48

标签: ruby jekyll homebrew rvm

我正在尝试在豹子上安装Jekyll,但无法正常工作。我取得的最大进步是能够在终端机上运行gem install jekyll,但随后出现错误make failed, exit code 2

  • 我已经安装了虎斑啤酒(因为brew现在与豹子不兼容了
  • 我已安装rvm(由于持续的证书/ ssl错误而从源代码安装)
  • 我已经从源代码安装了Ruby版本2.3.8p459
  • 我已安装Xcode 3.1.3

由于cert / ssl错误,我无法从rbenv或rvm安装ruby,这就是为什么我从源代码安装了ruby的原因。我可以通过brew install ruby安装,但是得到相同的结果。

我看过许多其他有关make failed错误的帖子,该错误通常与多个Ruby版本有关。这些页面上的答案都无效,因为我已经从源代码安装了所有内容(brew,rbenv或rvm从未安装过ruby)。 我已经尝试使用上述所有方法安装ruby,但出现了相同的错误。 每次我测试从源代码或从Tigerbrew / homebrew安装Ruby时,我都会干净安装Leopard + Xcode等新系统。我也在多台机器上进行了尝试。

我刚刚将rubygems更新为版本3.0.2,该版本修复了安装gems时出现的一些证书错误,但尚未解决问题。

还有什么我可以做的才能使它正常工作吗?

下面是我运行gem install jekyll时来自Terminal的输出。

jordans-power-mac-g4:desktop Jordan$ gem 

install jekyll
Fetching fast-stemmer-1.0.2.gem
Fetching sass-3.7.2.gem
Fetching ruby_dep-1.5.0.gem
Fetching coffee-script-source-1.11.1.gem
Fetching rb-fsevent-0.10.3.gem
Fetching rb-inotify-0.10.0.gem
Fetching jekyll-watch-1.5.1.gem
Fetching ffi-1.9.25.gem
Fetching coffee-script-2.4.1.gem
Fetching public_suffix-3.0.3.gem
Fetching sass-listen-4.0.0.gem
Fetching faraday-0.15.4.gem
Fetching listen-3.1.5.gem
Fetching jekyll-gist-1.5.0.gem
Fetching execjs-2.7.0.gem
Fetching blankslate-2.1.2.4.gem
Fetching parslet-1.5.0.gem
Fetching multipart-post-2.0.0.gem
Fetching jekyll-sass-converter-1.5.2.gem
Fetching yajl-ruby-1.2.3.gem
Fetching toml-0.1.2.gem
Fetching redcarpet-3.4.0.gem
Fetching octokit-4.13.0.gem
Fetching posix-spawn-0.3.13.gem
Fetching pygments.rb-0.6.3.gem
Fetching colorator-0.1.gem
Fetching liquid-2.6.3.gem
Fetching jekyll-paginate-1.1.0.gem
Fetching mercenary-0.3.6.gem
Fetching jekyll-coffeescript-1.1.1.gem
Fetching addressable-2.5.2.gem
Fetching sawyer-0.8.1.gem
Fetching kramdown-1.17.0.gem
Fetching safe_yaml-1.0.4.gem
Building native extensions. This could take a while...
Successfully installed fast-stemmer-1.0.2
Successfully installed classifier-reborn-2.2.0
Successfully installed rb-fsevent-0.10.3
Building native extensions. This could take a while...
ERROR:  Error installing jekyll:
    ERROR: Failed to build gem native extension.

    current directory: /usr/local/lib/ruby/gems/2.3.0/gems/ffi-

1.9.25/ext/ffi_c
    /usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.3.0 -r ./siteconf20190101-36895-fo3oja.rb extconf.rb
    checking for ffi.h... no
    checking for ffi.h in /usr/local/include,/usr/include/ffi... yes
    checking for ffi_call() in -lffi... yes
    checking for ffi_closure_alloc()... no
    checking for ffi_raw_call()... no
    checking for shlwapi.h... no
    checking for ruby/thread.h... yes
    checking for rb_thread_blocking_region()... no
    checking for rb_thread_call_with_gvl()... yes
    checking for rb_thread_call_without_gvl()... yes
    creating extconf.h
    creating Makefile

    current directory: /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c
    make "DESTDIR=" clean

    current directory: /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c
    make "DESTDIR="
    Configuring libffi
    cd "/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi-powerpc-darwin9.0" && make
    make 'AR_FLAGS=' 'CC_FOR_BUILD=' 'CFLAGS=-Wall -fexceptions' 'CXXFLAGS=-g -O2' 'CFLAGS_FOR_BUILD=' 'CFLAGS_FOR_TARGET=' 'INSTALL=/usr/local/bin/ginstall -c' 'INSTALL_DATA=/usr/local/bin/ginstall -c -m 644' 'INSTALL_PROGRAM=/usr/local/bin/ginstall -c' 'INSTALL_SCRIPT=/usr/local/bin/ginstall -c' 'JC1FLAGS=' 'LDFLAGS=' 'LIBCFLAGS=' 'LIBCFLAGS_FOR_TARGET=' 'MAKE=make' 'MAKEINFO=/bin/sh /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/missing makeinfo ' 'PICFLAG=' 'PICFLAG_FOR_TARGET=' 'RUNTESTFLAGS=' 'SHELL=/bin/sh' 'exec_prefix=/usr/local' 'infodir=/usr/local/share/info' 'libdir=/usr/local/lib' 'mandir=/usr/local/share/man' 'prefix=/usr/local' 'AR=ar' 'AS=as' 'CC=gcc' 'CXX=g++' 'LD=ld' 'NM=/usr/bin/nm -p' 'RANLIB=ranlib' 'DESTDIR=' all-recursive
    Making all in include
    make[3]: Nothing to be done for `all'.
    Making all in testsuite
    make[3]: Nothing to be done for `all'.
    Making all in man
    make[3]: Nothing to be done for `all'.
    /bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/prep_cif.lo /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/prep_cif.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/prep_cif.c  -fno-common -DPIC -o src/.libs/prep_cif.o
    /bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/types.lo /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/types.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/types.c  -fno-common -DPIC -o src/.libs/types.o
    /bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/raw_api.lo /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/raw_api.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/raw_api.c  -fno-common -DPIC -o src/.libs/raw_api.o
    /bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/java_raw_api.lo /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/java_raw_api.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/java_raw_api.c  -fno-common -DPIC -o src/.libs/java_raw_api.o
    /bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/closures.lo /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/closures.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/closures.c  -fno-common -DPIC -o src/.libs/closures.o
    /bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/powerpc/ffi_darwin.lo /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c  -fno-common -DPIC -o src/powerpc/.libs/ffi_darwin.o
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1114: error: syntax error before ‘*’ token
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1116: error: syntax error before ‘)’ token
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1172: error: syntax error before ‘*’ token
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1434: error: syntax error before ‘*’ token
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c: In function ‘ffi_go_closure_helper_DARWIN’:
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1437: error: ‘closure’ undeclared (first use in this function)
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1437: error: (Each undeclared identifier is reported only once
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1437: error: for each function it appears in.)
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1438: error: ‘rvalue’ undeclared (first use in this function)
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1438: error: ‘pgr’ undeclared (first use in this function)
    /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1438: error: ‘pfr’ undeclared (first use in this function)
    make[3]: *** [src/powerpc/ffi_darwin.lo] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all] Error 2
    make: *** ["/usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi-powerpc-darwin9.0"/.libs/libffi_convenience.a] Error 2

    make failed, exit code 2

    Gem files will remain installed in /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.25 for inspection.
    Results logged to /usr/local/lib/ruby/gems/2.3.0/extensions/powerpc-darwin-9/2.3.0-static/ffi-1.9.25/gem_make.out

编辑:

还尝试了全新的OS安装,Ruby 1.9.3p0和Jekyll 2.0.2。输出结果如下。

    powerbook:~ Jordan$ sudo gem install jekyll -v 2.0.2
Fetching: liquid-2.5.5.gem (100%)
Fetching: fast-stemmer-1.0.2.gem (100%)
Building native extensions.  This could take a while...
Fetching: mathn-0.1.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: classifier-1.3.5.gem (100%)
Fetching: hitimes-1.3.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: timers-4.0.4.gem (100%)
Fetching: celluloid-0.16.0.gem (100%)
Fetching: rb-fsevent-0.10.3.gem (100%)
Fetching: ffi-1.9.25.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
    ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... yes
checking for ffi_call() in -lffi... yes
checking for ffi_closure_alloc()... no
checking for ffi_raw_call()... no
checking for shlwapi.h... no
checking for ruby/thread.h... no
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
creating extconf.h
creating Makefile

make
Configuring libffi
cd "/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi-powerpc-darwin9.6.0" && make
make 'AR_FLAGS=' 'CC_FOR_BUILD=' 'CFLAGS=-Wall -fexceptions' 'CXXFLAGS=-g -O2' 'CFLAGS_FOR_BUILD=' 'CFLAGS_FOR_TARGET=' 'INSTALL=/usr/bin/install -c' 'INSTALL_DATA=/usr/bin/install -c -m 644' 'INSTALL_PROGRAM=/usr/bin/install -c' 'INSTALL_SCRIPT=/usr/bin/install -c' 'JC1FLAGS=' 'LDFLAGS=' 'LIBCFLAGS=' 'LIBCFLAGS_FOR_TARGET=' 'MAKE=make' 'MAKEINFO=/bin/sh /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/missing makeinfo ' 'PICFLAG=' 'PICFLAG_FOR_TARGET=' 'RUNTESTFLAGS=' 'SHELL=/bin/sh' 'exec_prefix=/usr/local' 'infodir=/usr/local/share/info' 'libdir=/usr/local/lib' 'mandir=/usr/local/share/man' 'prefix=/usr/local' 'AR=ar' 'AS=as' 'CC=gcc' 'CXX=g++' 'LD=ld' 'NM=/usr/bin/nm -p' 'RANLIB=ranlib' 'DESTDIR=' all-recursive
Making all in include
make[3]: Nothing to be done for `all'.
Making all in testsuite
make[3]: Nothing to be done for `all'.
Making all in man
make[3]: Nothing to be done for `all'.
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/prep_cif.lo /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/prep_cif.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/prep_cif.c  -fno-common -DPIC -o src/.libs/prep_cif.o
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/types.lo /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/types.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/types.c  -fno-common -DPIC -o src/.libs/types.o
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/raw_api.lo /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/raw_api.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/raw_api.c  -fno-common -DPIC -o src/.libs/raw_api.o
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/java_raw_api.lo /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/java_raw_api.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/java_raw_api.c  -fno-common -DPIC -o src/.libs/java_raw_api.o
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/closures.lo /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/closures.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/closures.c  -fno-common -DPIC -o src/.libs/closures.o
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -Wall -fexceptions -c -o src/powerpc/ffi_darwin.lo /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src -Wall -fexceptions -c /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c  -fno-common -DPIC -o src/powerpc/.libs/ffi_darwin.o
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1114: error: syntax error before ‘*’ token
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1116: error: syntax error before ‘)’ token
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1172: error: syntax error before ‘*’ token
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1434: error: syntax error before ‘*’ token
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c: In function ‘ffi_go_closure_helper_DARWIN’:
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1437: error: ‘closure’ undeclared (first use in this function)
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1437: error: (Each undeclared identifier is reported only once
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1437: error: for each function it appears in.)
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1438: error: ‘rvalue’ undeclared (first use in this function)
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1438: error: ‘pgr’ undeclared (first use in this function)
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c:1438: error: ‘pfr’ undeclared (first use in this function)
make[3]: *** [src/powerpc/ffi_darwin.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** ["/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/libffi-powerpc-darwin9.6.0"/.libs/libffi_convenience.a] Error 2


Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.9.25/ext/ffi_c/gem_make.out

1 个答案:

答案 0 :(得分:0)

所以我发现Make错误是由于某些依赖项与系统不兼容所致。

通过运行以下命令,我设法在OSX 10.5.6(Leopard)上安装了Jekyll 3.8.5:

sudo gem install ffi -v 1.7.0

sudo gem install eventmachine -v 1.0.9.1

sudo gem install jekyll -v 3.8.5

现在尝试10.4.8 ..