在OS X Mavericks上安装Calabash-cucumber错误 [英] Install Calabash-cucumber error on OS X Mavericks

查看:299
本文介绍了在OS X Mavericks上安装Calabash-cucumber错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过链接:( https: //github.com/calabash/calabash-ios

I am trying to install calabash on OS-x mavericks for automation by refering to the link: (https://github.com/calabash/calabash-ios)

我安装了最新版本的ruby,homebrew,rbenv。

I have installed latest version of ruby, homebrew, 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.

我无法删除此警告。也有一些论坛建议这可能是无害的。

I was not able to remove this warning. Also some forum suggested that this may be harmless.

在努力安装问题2天直,现在,
我陷入了这一点,以下错误:

after struggling with installation issue for 2 days straight now, I am stuck at this point where I am getting the following error:

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

我假设安装失败,因为终端无法识别calabash命令。
我需要知道为什么我得到错误?它是一个小牛的问题?或者是Xcode-5问题?

I am assuming the installation has failed because the terminal fails to recognise calabash command. I need to know why I am getting the error? Its it a mavericks issue? Or is it a Xcode-5 issue?

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

Any help or suggestion will be appreciated. Thanks.

推荐答案

我查看了calabash-ios google群组,我认为我有解决方案

I looked at the calabash-ios google group for you and I think I have the solution for your

尝试安装它

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

失败,您可以尝试将xcode从5.1降级到之前的一个(首选项 - >位置)。

If that fails you can try to downgrade xcode from 5.1 to one of the previous(Preferences->Locations).

和引用链接

这篇关于在OS X Mavericks上安装Calabash-cucumber错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆