[英]Ruby gem version_sorter on OS X 10.9
I've tried to make update for Gitlab Installation guide for OS X ( https://github.com/CiTroNaK/Installation-guide-for-GitLab-on-OS-X ) for the newest version of Gitlab 6.7. 我已经尝试更新OS X的Gitlab安装指南( https://github.com/CiTroNaK/Installation-guide-for-GitLab-on-OS-X ),以获取最新版本的Gitlab 6.7。
I use OS X 10.9 with xcode command lines tools and I ended with this error for version_sorter
gem: 我将OS X 10.9与xcode命令行工具一起使用,以version_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
Unfortunately I do not have enough knowledge to fix it. 不幸的是,我没有足够的知识来解决它。 Could someone help me please? 有人可以帮我吗?
A recent XCode update broke quite a bit of native code compilation, try this: 最近的XCode更新中断了很多本机代码编译,请尝试以下操作:
Add ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
to whatever you were running above. 将ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
到上面运行的任何内容中。 It looks like the Gitlab instructions are installing it using the system Ruby, so try this: 看来Gitlab指令正在使用系统Ruby安装它,因此请尝试以下操作:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install version_sorter
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.