2013-08-20 50 views
0

我在安裝poltergeist gem時遇到問題。我收到以下錯誤:在ruby 2.0上安裝poltergeist時出錯

ERROR: Error installing poltergeist: 
poltergeist requires Ruby version >= 1.9.2. 

我在OS X Mountain Lion v10.8.4上使用ruby-2.0.0-p195。我的寶石名單如下:

*** LOCAL GEMS *** 

actionmailer (3.2.13) 
actionpack (3.2.13) 
activemodel (3.2.13) 
activerecord (3.2.13) 
activeresource (3.2.13) 
activesupport (3.2.13) 
addressable (2.3.4) 
albacore (0.3.5) 
arel (3.0.2) 
atomic (1.1.10) 
builder (3.2.2, 3.0.4) 
bundler (1.3.5) 
capybara (2.1.0) 
capybara-screenshot (0.3.13) 
childprocess (0.3.9) 
chromedriver-helper (0.0.5) 
chronic (0.9.1) 
cucumber (1.3.2) 
data_magic (0.14) 
diff-lcs (1.2.4) 
erubis (2.7.0) 
eventmachine (1.0.3) 
faker (1.1.2) 
faye-websocket (0.4.7) 
ffi (1.9.0) 
gherkin (2.12.0) 
headless (1.0.1) 
hike (1.2.3) 
http_parser.rb (0.5.3) 
httpclient (2.3.3) 
i18n (0.6.4, 0.6.1) 
jar_wrapper (0.1.7) 
journey (1.0.4) 
mail (2.5.4) 
mime-types (1.23) 
mini_portile (0.5.0) 
minitest (4.7.5) 
multi_json (1.7.6) 
nokogiri (1.6.0) 
page-object (0.9.0) 
page_navigation (0.9) 
polyglot (0.3.3) 
rack (1.5.2, 1.4.5) 
rack-cache (1.2) 
rack-test (0.6.2) 
rake (10.0.4) 
rspec (2.13.0) 
rspec-core (2.13.1) 
rspec-expectations (2.13.0) 
rspec-mocks (2.13.1) 
ruby (0.1.0) 
rubygems-bundler (1.1.1) 
rubyzip (0.9.9) 
rvm (1.11.3.7) 
selenium (0.2.10) 
selenium-webdriver (2.33.0) 
sprockets (2.2.2) 
thread_safe (0.1.0) 
tilt (1.4.1) 
treetop (1.4.14) 
tzinfo (0.3.37) 
watir-webdriver (0.6.4) 
websocket (1.0.7) 
xpath (2.0.0) 
yml_reader (0.2) 
zip (2.0.2) 

我認爲poltergeist gem應該與ruby 2.0兼容,因爲版本1.3.0是相當新近的。頁面 - http://rubygems.org/gems/poltergeist列出了以下的寶石作爲依賴:

capybara ~> 2.1.0 
faye-websocket < 0.5.0, >= 0.4.4 
http_parser.rb ~> 0.5.3 

正如你可以從我的寶石列表,請參閱我安裝了寶石,但還沒有我得到的錯誤。

有人知道我爲什麼會出現錯誤嗎?

+0

我不認爲poltergeist支持ruby-2.0截至目前看到文檔https://github.com/jonleighton/poltergeist/tree/v1.3.0 –

回答

0

得到這個排序。

我運行命令rvm use 2.0,然後安裝gem install poltergeist併成功安裝。