首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在OS X Mavericks上安装Calabash-cucumber错误

在OS X Mavericks上安装Calabash-cucumber错误
EN

Stack Overflow用户
提问于 2014-04-01 17:11:49
回答 1查看 1.7K关注 0票数 1

我正在尝试通过以下链接在OS-x mavericks上安装calabash以实现自动化:(https://github.com/calabash/calabash-ios)

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

请注意该命令

代码语言:javascript
复制
homebrew doctor

只给了我一个警告:

代码语言:javascript
复制
Warning: Xcode is installed to a directory with a space in the name.
This will cause some formulae to fail to build.

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

在连续两天与安装问题作斗争之后,我被困在这一点上,我收到以下错误:

代码语言:javascript
复制
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的问题?

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

EN

回答 1

Stack Overflow用户

发布于 2014-04-01 21:22:44

我为您查看了calabash-ios google组,我想我已经为您的

尝试像这样安装它

代码语言:javascript
复制
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install calabash-cucumber

如果失败,您可以尝试将xcode从5.1版本降级到之前的版本(Preferences->Location)。

和参考link

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22781419

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档