Capybara does not install in Ruby

Asked

Viewed 149 times

0

I’m new to Ruby and I wanted a help, I was trying to install Capybara with Ruby but I’m not getting it.

The mistake is:

Gem::Runtimerequirementnotmeterror: Capybara requires Ruby version >= 2.4.0. The Current ruby version is 2.3.3.222. An error occurred while Installing Capybara (3.28.0), and Bundler cannot continue. Make sure that gem install capybara -v '3.28.0' --source 'http://rubygems.org/' succeeds before bundling.

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

1 answer

1

Good morning Brandon

I was in the same trouble as you and now I’ve worked it out step by step:

1) I saved all my test files (work) and Gem (configuration)

2) Uninstalled All

3) Download and install the following ruby release:

Source:

=> For the x64 Platform we use the link below: https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.5-1/rubyinstaller-2.4.5-1-x64.exe

=> For the x86 Platform we use the link below: https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.5-1/rubyinstaller-2.4.5-1-x86.exe

4) I installed rubyinstaller*. exe and at the end made the updates [1,2,3].

5) In Ruby’s.com command: ruby -v => I identify that the installed ruby is ruby 2.4.0

6) In Ruby.com: Gem install bundler (ruby package manager)

7) In Ruby.com: Gem install Cucumber

8) In Ruby comand.com: Bundle init

9) In Ruby’s.com command: Cucumber --init

Browser other questions tagged

You are not signed in. Login or sign up in order to post.