jruby/cucumber: 捆绑安装不安装任何 gem

jruby/cucumber: Bundle install doesn't install any gem

我在 Windows 10 x64 上,我已经安装了 JRuby 1.7.8(我尝试了 x64 和 32 位的文件,但遇到了同样的问题)和 JRE 7。

我试图在另一台机器上安装我的 Cucumber 测试框架 运行。我下载了我当前的分支(它在其他计算机上工作正常,具有所有设置:env.rb、Gemfile 等)然后我成功安装了这两个 gems:

我的 Gemfile 包含大量 gems,类似于:

source 'https://rubygems.org'
gem "httpclient"
gem "watir-webdriver"

但是当我执行时:

我刚收到这条线,但没有安装任何东西,它几乎立即完成。没有创建Gemfile.lock等

D:\project>bundle install
io/console not supported; tty will not be manipulated

D:\project>

知道哪里出了问题以及我可以尝试什么吗?

不太确定问题是否与上面的行有关(我在其他正在工作的机器上从未见过)。如果它不相关并且您对这两个问题都有想法,请告诉我,我也会看看...


我已经尝试了几个小时,但仍然没有成功,请添加更多信息以防有人发现问题。甚至 'bundle -v' 也不能在这台机器上工作?!

D:\project>gem list
io/console not supported; tty will not be manipulated

*** LOCAL GEMS ***

builder (3.2.2)
bundler (1.13.2)
cucumber (2.4.0)
cucumber-core (1.5.0)
cucumber-wire (0.0.1)
diff-lcs (1.2.5)
gherkin (4.0.0)
jruby-win32ole (0.8.5)
multi_json (1.12.1)
multi_test (0.1.2)
rake (10.1.0)

D:\project>bundle -v
io/console not supported; tty will not be manipulated

D:\project>

干杯!!

虽然我对jruby不是特别熟悉,但是好像是一个bug,在JRuby 1.7.24中解决了

我会验证它正在处理的其他计算机是否仍在该版本的 jruby 上(假设它们是 windows 个盒子)。

您安装了最新版本的 bundler 1.13.2,我发现它会导致不同类型的问题,具体取决于 jruby 版本和其他一些 gem。 Bundler 1.10.6 每次都适用于我的 Jruby 1。7.x。

试试这些:

gem uninstall bundler

gem install bundler -v 1.10.6