AgileTesters / forum

Fórum de Discussão do Agile Testers
https://agiletesters.com.br
MIT License
80 stars 2 forks source link

[Ruby] [Cucumber] Problema ao instalar as gems - Ubuntu #178

Open eu-MicheleOliveira opened 3 years ago

eu-MicheleOliveira commented 3 years ago

Oi, pessoal. Estou fazendo as instalações para executar os testes em um Ubuntu 20.04.1 Estou tendo dificuldades ao instalar as gems

Meu gemfile: `source "https://rubygems.org"

gem 'capybara' gem 'cucumber' gem 'selenium-webdriver' gem 'rspec' gem 'racc' gem 'ffi'`

Ao rodar o bundler, retorna a falha:

`To see why this extension failed to compile, please check the mkmf.log which can be found here:

/tmp/bundler20210204-26057-73nodnracc-1.5.2/extensions/x86_64-linux/2.7.0/racc-1.5.2/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20210204-26057-73nodnracc-1.5.2/gems/racc-1.5.2 for inspection. Results logged to /tmp/bundler20210204-26057-73nodnracc-1.5.2/extensions/x86_64-linux/2.7.0/racc-1.5.2/gem_make.out

An error occurred while installing racc (1.5.2), and Bundler cannot continue. Make sure that gem install racc -v '1.5.2' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: capybara was resolved to 3.35.3, which depends on xpath was resolved to 3.2.0, which depends on nokogiri was resolved to 1.11.1, which depends on racc `

Observação: Não está sendo gerado o arquivo Gemfile.lock. Não sei porque

As imagens: https://prnt.sc/y9xz26 https://prnt.sc/y9y592

Alguém pode me ajudar? Por favor ?:(

leoGalani commented 3 years ago

Olá Michele,

Desculpa a demora para responder :)

Parece que esta faltando algumas dependências do linux. No stack de erro que vc mandou não da pra ver qual dependência ta faltando.

Seria interessante vc dar uma olhada no log gravado dentro do (/tmp/bundler20210204-26057-73nodnracc-1.5.2/extensions/x86_64-linux/2.7.0/racc-1.5.2/mkmf.log) para ter certeza do problema.

:)

Also,