0
該文檔說,Poltergeist 1.9.0應該可以在Ruby 1.9.3或更高版本中使用,但是當我嘗試在Ubuntu上安裝Poltergeist 1.9.0時遇到了安裝錯誤與Ruby 1.9.3。除升級Ruby之外是否有解決方法?Poltergeist 1.9.0 w/Ruby 1.9.3
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