我在安装poltergeist gem时遇到问题。我收到以下错误:
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 :(得分:0)
对此进行了排序。
我运行命令rvm use 2.0,然后安装gem install poltergeist并成功安装。