1
resposta

Problemas na criação do projeto

Estou usando o fedora 30 e tentei fazer a instalação com os comandos do fedora e apareceu o erro abaixo ...alguem pode me ajudar?

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /usr/share/gems/gems/nio4r-2.4.0/ext/nio4r

/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20190711-8371-1amu6wm.rb extconf.rb checking for unistd.h... * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib64 --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/$(RUBY_BASE_NAME) /usr/share/ruby/mkmf.rb:467:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/share/ruby/mkmf.rb:601:intry_cpp' from /usr/share/ruby/mkmf.rb:1109:in block in have_header' from /usr/share/ruby/mkmf.rb:959:inblock in checking_for' from /usr/share/ruby/mkmf.rb:361:in block (2 levels) in postpone' from /usr/share/ruby/mkmf.rb:331:inopen' from /usr/share/ruby/mkmf.rb:361:in block in postpone' from /usr/share/ruby/mkmf.rb:331:inopen' from /usr/share/ruby/mkmf.rb:357:in postpone' from /usr/share/ruby/mkmf.rb:958:inchecking_for' from /usr/share/ruby/mkmf.rb:1108:in have_header' from extconf.rb:14:in

'

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

/usr/lib64/gems/ruby/nio4r-2.4.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/share/gems/gems/nio4r-2.4.0 for inspection. Results logged to /usr/lib64/gems/ruby/nio4r-2.4.0/gem_make.out

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

In Gemfile: rails was resolved to 5.2.3, which depends on actioncable was resolved to 5.2.3, which depends on nio4r run bundle exec spring binstub --all Could not find gem 'chromedriver-helper' in any of the gem sources listed in your Gemfile.

1 resposta

Olá, como vai?

Pelo que parece, esse erro está ocorre no momento da escrita na pasta /usr/bin.

Por gentileza, adiciona essa linha para dar acesso-n /usr/local/bin a pasta e nos fale se dá certo.

Caso não dê, por favor, informe os comandos que usou para instalação e te daremos um retorno.

Obrigado.

: )

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software