我需要一些帮助来尝试安装 Calabash-Android。安装 rvm、home-brew 后,当我安装 Calabash 时,出现一个奇怪的错误:
sudo gem install calabash-android
Building native extensions. This could take a while...
ERROR: Error installing calabash-android:
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
doronkatz@Dorons-MacBook-Air ~ $ mkdir ~/android
doronkatz@Dorons-MacBook-Air ~ $ mkdir ~/android
mkdir: /Users/doronkatz/android: File exists
doronkatz@Dorons-MacBook-Air ~ $ sudo gem install calabash-android
密码:
构建本机扩展。这可能需要一段时间...
错误:安装 calabash-android 时出错:
错误:无法构建 gem 本机扩展。
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
检查 -lc 中的 main()...是的
创建Makefile
make "DESTDIR="
编译 gherkin_lexer_ar.c
ragel/i18n/ar.c.rl:440:1:警告:控制可能到达非 void 函数的末尾 [-Wreturn-type]
}
^
ext/gherkin_lexer_ar/gherkin_lexer_ar.c:864:18:警告:未使用的变量“lexer_en_main”[-Wunused-const-variable]
静态常量 int lexer_en_main = 1;
^
生成 2 个警告。
链接共享对象 gherkin_lexer_ar.bundle
clang:错误:未知参数:'-multiply_definesuppress' [-Wunused-command-line- argument-hard-error-in-future]
clang:注意:这将是一个硬错误(不能降级为警告)在未来
make: *** [gherkin_lexer_ar.bundle] 错误 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
不确定该错误意味着什么,我也为特立独行者安装了 Xcode 工具。有什么想法吗?