该文档说Poltergeist 1.9.0应该与Ruby 1.9.3或更高版本一起使用,但是当我尝试使用Ruby 1.9.3在Ubuntu上安装Poltergeist 1.9.0时,我遇到了安装错误。除了升级Ruby之外还有解决方法吗?
PS。我也使用Cucumber 1.3.19和Capybara 2.4.4。
# gem --version
1.8.23
# ruby --version
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
# gem install poltergeist
ERROR: Error installing poltergeist:
mime-types-data requires Ruby version >= 2.0.
# gem install poltergeist 1.9.0
Fetching: poltergeist-1.9.0.gem (100%)
Fetching: mini_portile2-2.0.0.rc2.gem (100%)
Fetching: mime-types-data-3.2016.0221.gem (100%)
ERROR: Error installing poltergeist:
mime-types-data requires Ruby version >= 2.0.
ERROR: Could not find a valid gem '1.9.0' (>= 0) in any repository
答案 0 :(得分:0)
使用<