首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Windows上安装calabash-android时出错

在Windows上安装calabash-android时出错
EN

Stack Overflow用户
提问于 2015-07-08 10:47:32
回答 1查看 836关注 0票数 1

我正试图在我的windows机器上安装,但我有严重的问题。我按照xamarin指南安装了ruby和,前几天我成功了。然后,当我尝试创建我自己的场景时,我的计算机会给我带来一些关于场景的问题,而我的所有场景都会失败。我搜索并阅读了一些关于gherkin错配的评论,我想重新安装所有的东西。我卸载我的红宝石和删除所有相关的文件从我的电脑。(葫芦和宝石文件等)现在我想再次安装calabash-android,但我有一些问题。我尝试了不同版本的红宝石,但最终我所有的努力都到了死胡同。我最后的努力让我在这个指南(手动安装calabash)上完成了第6步。

代码语言:javascript
复制
PS C:\Users\alper.silistre> gem install ffi –-platform=ruby --no-ri --no-rdoc
The system cannot find the path specified.
Fetching: ffi-1.9.10-x64-mingw32.gem (100%)
Successfully installed ffi-1.9.10-x64-mingw32
ERROR:  While executing gem ... (URI::InvalidURIError)
        bad URI(is not URI?): ?gems=û-platform=ruby

这是我在步骤6上给出的错误。然后我继续,因为它说成功地安装了ffi,但是它给出了执行创业板错误,我不知道。

步骤7;

代码语言:javascript
复制
PS C:\Users\alper.silistre> gem install xamarin-test-cloud –-platform=ruby --no-ri --no-rdoc
The system cannot find the path specified.
Fetching: retriable-2.0.2.gem (100%)
Successfully installed retriable-2.0.2
Fetching: mime-types-1.25.1.gem (100%)
Successfully installed mime-types-1.25.1
Fetching: netrc-0.10.3.gem (100%)
Successfully installed netrc-0.10.3
Fetching: unf_ext-0.0.7.1-x64-mingw32.gem (100%)
Successfully installed unf_ext-0.0.7.1-x64-mingw32
Fetching: unf-0.1.4.gem (100%)
Successfully installed unf-0.1.4
Fetching: domain_name-0.5.24.gem (100%)
Successfully installed domain_name-0.5.24
Fetching: http-cookie-1.0.2.gem (100%)
Successfully installed http-cookie-1.0.2
Fetching: rest-client-1.8.0-x64-mingw32.gem (100%)
Successfully installed rest-client-1.8.0-x64-mingw32
Fetching: rubyzip-1.1.7.gem (100%)
Successfully installed rubyzip-1.1.7
Fetching: bundler-1.10.5.gem (100%)
Successfully installed bundler-1.10.5
Fetching: thor-0.19.1.gem (100%)
Successfully installed thor-0.19.1
Fetching: xamarin-test-cloud-1.1.1.gem (100%)
Successfully installed xamarin-test-cloud-1.1.1
ERROR:  While executing gem ... (URI::InvalidURIError)
    bad URI(is not URI?): ?gems=û-platform=ruby

最后2行也有相同的错误。我又继续了。

步骤8;

代码语言:javascript
复制
PS C:\Users\alper.silistre> gem install calabash-android –-platform=ruby --no-ri --no-rdoc
The system cannot find the path specified.
Fetching: escape-0.0.4.gem (100%)
Successfully installed escape-0.0.4
Fetching: httpclient-2.6.0.1.gem (100%)
Successfully installed httpclient-2.6.0.1
Fetching: awesome_print-1.6.1.gem (100%)
Successfully installed awesome_print-1.6.1
Fetching: multi_test-0.1.2.gem (100%)
Successfully installed multi_test-0.1.2
Fetching: multi_json-1.11.2.gem (100%)
Successfully installed multi_json-1.11.2
Fetching: gherkin-2.12.2.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
The system cannot find the path specified.
ERROR:  Error installing calabash-android:
        ERROR: Failed to build gem native extension.

    C:/Ruby21-x64/bin/ruby.exe -r ./siteconf20150708-1204-dwo4kp.rb extconf.rb
checking for main() in -lc... no
creating Makefile

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/gherkin-2.12.2 f
Results logged to C:/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0/gherkin-2
ERROR:  While executing gem ... (URI::InvalidURIError)
    bad URI(is not URI?): ?gems=û-platform=ruby

这一次给了我

代码语言:javascript
复制
Error installing calabash-android:
            ERROR: Failed to build gem native extension.

错误以及在最后2行中相同的执行错误。

我尝试了很多东西,在网上搜索了很多东西,但始终没有找到解决方案。如果有人想知道,我也会给出我的版本;

代码语言:javascript
复制
.Microsoft Windows 8.1 Pro
.Ruby version : ruby 2.1.5p273 (2014-11-13 revision 48405) [x64-mingw32]

宝石的.List;

代码语言:javascript
复制
*** LOCAL GEMS ***

awesome_print (1.6.1)
bigdecimal (1.2.4)
bundler (1.10.5)
domain_name (0.5.24)
escape (0.0.4)
ffi (1.9.10 x64-mingw32)
http-cookie (1.0.2)
httpclient (2.6.0.1)
io-console (0.4.2)
json (1.8.1)
mime-types (1.25.1)
minitest (4.7.5)
multi_json (1.11.2)
multi_test (0.1.2)
netrc (0.10.3)
psych (2.0.5)
rake (10.1.0)
rdoc (4.1.0)
rest-client (1.8.0 x64-mingw32)
retriable (2.0.2)
rubygems-update (2.4.8)
rubyzip (1.1.7)
test-unit (2.1.5.0)
thor (0.19.1)
unf (0.1.4)
unf_ext (0.0.7.1 x64-mingw32)
xamarin-test-cloud (1.1.1)

如果有人能在这个问题上帮助我,我将非常感激,我希望可能的答案能够解决其他可能遇到同样情况的人的问题。

编辑:在我的上级的帮助下,我设法安装了calabash,但是问题似乎是关于gherkin的。它不允许我运行我的测试,它给我的错误,如

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-08-10 11:30:27

这一问题:

代码语言:javascript
复制
Error installing calabash-android:
ERROR: Failed to build gem native extension.

由于rubygem版本与本机扩展不兼容而发生。

下面的命令将修复此问题:

代码语言:javascript
复制
gem update --system 2.3.0

请参阅:

1) https://github.com/rubygems/rubygems/issues/977

2) 错误:在Windows上生成gem本机扩展失败

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

https://stackoverflow.com/questions/31290426

复制
相关文章

相似问题

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