OS X 10.9上的Ruby gem版本
我已经尝试为最新版本的Gitlab 6.7更新Gitlab OS X安装指南() 我将OS X 10.9与xcode命令行工具一起使用,并在OS X 10.9上的Ruby gem版本,ruby,macos,gitlab,Ruby,Macos,Gitlab,我已经尝试为最新版本的Gitlab 6.7更新Gitlab OS X安装指南() 我将OS X 10.9与xcode命令行工具一起使用,并在version\u sortergem: Building native extensions. This could take a while... ERROR: Error installing version_sorter: ERROR: Failed to build gem native extension. /System/Library/
version\u sorter
gem:
Building native extensions. This could take a while...
ERROR: Error installing version_sorter:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for pcre_compile() in -lpcre... yes
creating Makefile
make "DESTDIR="
compiling rb_version_sorter.c
compiling version_sorter.c
version_sorter.c:49:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
while (cur = vsi->head) {
~~~~^~~~~~~~~~~
version_sorter.c:49:16: note: place parentheses around the assignment to silence this warning
while (cur = vsi->head) {
^
( )
version_sorter.c:49:16: note: use '==' to turn this assignment into an equality comparison
while (cur = vsi->head) {
^
==
1 warning generated.
linking shared-object version_sorter.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: *** [version_sorter.bundle] Error 1
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/version_sorter-1.1.0 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/version_sorter-1.1.0/ext/version_sorter/gem_make.out
不幸的是,我没有足够的知识来修复它。有人能帮帮我吗?最近的一次XCode更新破坏了大量本机代码编译,请尝试以下方法:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install version_sorter
将ARCHFLAGS=-Wno error=将来未使用的命令行参数hard error
添加到上面运行的内容中。看起来Gitlab说明正在使用系统Ruby安装它,因此请尝试以下方法:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install version_sorter
工作起来很有魅力。非常感谢。可能是副本