繁体   English   中英

在Windows上安装calabash-android时出错

[英]Error installing calabash-android on Windows

我正在尝试在Windows计算机上安装calabash-android,但出现严重问题。 我按照xamarin指南安装ruby和calabash-android,前几天我成功了。 然后,当我尝试创建自己的方案时,计算机使我对方案产生了一些问题,并且所有方案都失败了。 我搜索并阅读了有关小黄瓜不匹配的一些评论,我想重新安装所有内容。 我卸载了ruby,并从我的PC中删除了所有相关文件。(calabash和gem文件等。)现在我想再次安装calabash-android,但是遇到了一些问题。 我尝试了不同版本的红宝石,但最终我的所有努力都陷入了僵局。 我最近的努力使我进入了本指南的第6步(手动安装葫芦)。

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,但是却给出了我不知道的执行gem错误。

步骤7;

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;

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

这次给了我

Error installing calabash-android:
            ERROR: Failed to build gem native extension.

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

我尝试了很多事情,并在互联网上进行了大量搜索,但从未找到解决方案。 如果有人怀疑,我也会提供我的版本;

.Microsoft Windows 8.1 Pro
.Ruby version : ruby 2.1.5p273 (2014-11-13 revision 48405) [x64-mingw32]

。宝石清单;

*** 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)

如果有人可以在这个问题上为我提供帮助,我将不胜感激,我希望可能的答案可以解决可能遇到相同情况的其他人的问题。


编辑:我设法在我的上级帮助下以--verbose安装calabash-android,但问题似乎出在小黄瓜上。 它是不是让我跑我的测试,这让我错误像这样

这个问题:

Error installing calabash-android:
ERROR: Failed to build gem native extension.

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

以下命令将解决此问题:

gem update --system 2.3.0

参考:

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

2) 错误:无法在Windows上构建gem本机扩展

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM