OS X 10.9 XCode5.1升级后 安装Jekyll报错
2014-03-26 20:55
260 查看
报错如下:
This is due to Xcode 5.1 - its already reported as a bug to Ruby.
I found three different ways to fix the bug:
Install using:
Install Ruby 2.1.1. You can do this using
Follow the instructions from http://stackoverflow.com/a/22340285/1270034 to remove the offending arg from rbconfig.
sudo gem install jekyll Password: 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 extconf.rb creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling porter.c porter.c:359:27: warning: '&&' within '||' [-Wlogical-op-parentheses] if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--; ~~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~ porter.c:359:27: note: place parentheses around the '&&' expression to silence this warning if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--; ^ ( ) 1 warning generated. compiling porter_wrap.c linking shared-object stemmer.bundle clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future make: *** [stemmer.bundle] Error 1 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-13/2.0.0/fast-stemmer-1.0.2/gem_make.out
This is due to Xcode 5.1 - its already reported as a bug to Ruby.
I found three different ways to fix the bug:
Install using:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install jekyll
Install Ruby 2.1.1. You can do this using
brew install ruby(http://brew.sh/)
Follow the instructions from http://stackoverflow.com/a/22340285/1270034 to remove the offending arg from rbconfig.
相关文章推荐
- 在 Win 7 下使用 VirtualBOX 虚拟机安装 OS X 10.9 Mavericks 及 Xcode 5
- VirtualBOX 虚拟机安装 OS X 10.9 Mavericks 及 Xcode 5,本人X220亲测
- 在 Win 7 下使用 VirtualBOX 虚拟机安装 OS X 10.8 Mountain Lion 及 XCode 4.4.1 (iOS SDK5.1) 作开发
- [IOS_VirtualBox]VirtualBOX 虚拟机安装 OS X 10.9 Mavericks 及 Xcode 5,本人X220亲测
- VirtualBOX 虚拟机安装 OS X 10.9 Mavericks 及 Xcode 5,本人X220亲测(超详细截图)
- 装黑苹果系统 VirtualBOX 虚拟机安装 OS X 10.9 Mavericks 及 Xcode 5,本人X220亲测
- VirtualBOX 虚拟机安装 OS X 10.9 Mavericks 及 Xcode 5,本人X220亲测
- 在 Win 7 下使用 VirtualBOX 虚拟机安装 OS X 10.9 Mavericks 及 Xcode 5
- VirtualBOX 虚拟机安装 OS X 10.9 Mavericks 及 Xcode 5,本人X220亲测
- VirtualBOX 虚拟机安装 OS X 10.9 Mavericks 及 Xcode 5,本人X220亲测
- VirtualBOX 虚拟机安装 OS X 10.9 Mavericks 及 Xcode 5
- OS X 10.9 Mavericks下如何安装Command Line Tools(命令行工具)
- VMware 9 安装 OS X 10.8.4 并安装 Xcode 4.6
- No.01 Xcode(5.1.x) 在Vmware中安装Mac OS X 10.8
- Xcode 5.1安装插件:规范注释生成器VVDocumenter
- Xcode 5.1安装插件:规范注释生成器VVDocumenter
- 在 Win 7 下使用 VirtualBOX 虚拟机安装 OS X 10.8 Mountain Lion 及 Xcode 4.5
- OS X 10.9 Mavericks下如何安装Command Line Tools(命令行工具)
- 在 Win7/Win8下使用 VirtualBOX虚拟机安装 OS X 10.11 El Capitan 及 Xcode 7.0
- 在 Win 7或8 下使用 VirtualBOX 虚拟机安装 OS X 10.11 El Capitan 及 Xcode 7