2014-04-01 104 views
1

我试图通过指的链接OS-X小牛安装蠡自动化:(https://github.com/calabash/calabash-ios上安装OS X小牛葫芦,黄瓜错误

我已经安装了最新版本的红宝石,自制,rbenv的。

请注意,命令

homebrew doctor 

是给我的只有一个警告:

Warning: Xcode is installed to a directory with a space in the name. 
This will cause some formulae to fail to build. 

我无法删除此警告。另外一些论坛认为这可能是无害的。

nitzs-iMac:tabbedapp nitzarg$ sudo gem install calabash-cucumber 
Password: 
Building native extensions. This could take a while... 
ERROR: Error installing calabash-cucumber: 
ERROR: Failed to build gem native extension. 

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
checking for main() in -lc... yes 
creating Makefile 

make "DESTDIR=" 
compiling gherkin_lexer_ar.c 
ragel/i18n/ar.c.rl:440:1: warning: control may reach end of non-void function [-Wreturn-   type] 
} 
^ 
ext/gherkin_lexer_ar/gherkin_lexer_ar.c:864:18: warning: unused variable 'lexer_en_main'   [-Wunused-const-variable] 
static const int lexer_en_main = 1; 
      ^
2 warnings generated. 
linking shared-object gherkin_lexer_ar.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: *** [gherkin_lexer_ar.bundle] Error 1 


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/gherkin-2.12.2 for inspection. 
Results logged to /Library/Ruby/Gems/2.0.0/gems/gherkin- 2.12.2/ext/gherkin_lexer_ar/gem_make.out 

我假设安装失败,因为终端没有认识到:

直现在2天的安装问题挣扎, 我被困在这一点上,我正在以下错误后葫芦指令。 我需要知道为什么我得到错误?它是一个特立独行的问题?或者它是一个Xcode-5问题?

任何帮助或建议,将不胜感激。谢谢。

+0

另外,我忘了提,我也安装了“最新”的Xcode命令行工具。 – nitz19arg

+0

[Ruby Gem install Json在Mavericks和Xcode 5.1上失败 - 未知参数:'-multiply \ _definedsuppress'](http://stackoverflow.com/questions/22352838/ruby-gem-install-json-fails-on -mavericks-and-xcode-5-1-unknown-argument-mul) – Nakilon

回答

2

我看着葫芦,IOS谷歌组你,我想我有你的

解决方案尝试这样

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install calabash-cucumber 

安装它如果失败,你可以尝试从降级的xcode 5.1到之前的一个(首选项 - >位置)。

和参考link

+0

Hi @Lasse,我在Google组上看到了相同的查询。 commang应该是 - >“sudo export ARCHFLAGS = -Wno-error = unused-command-line-argument-hard-error-in-future bundle install; sudo gem install calabash-cucumber”。但它给了我同样的错误。降级目前似乎是一个遥不可及的选项,因为应用程序即时测试是针对xcode 5的。您是否可以用任何特定参数支持它(降级)? – nitz19arg

+0

不是我知道的不幸。但我可以看到你在谷歌组织中提出了你的问题,我相信你很快就会得到答案。 – Lasse

+0

在Stackoverflow上还有另一篇文章,它有一个刚刚被接受的备选答案。所以你可以尝试一下,如果你还没有。 [链接](http://stackoverflow.com/a/22765773/1165581) – Lasse