rails 6.1.3.1にバージョンアップをしようとして、gem書き換えてbundle installしようとしたら
複数のgemでエラーが出ます。
gem installでバージョン指定してinstall行ってもうまくいきません。
エラーが出てるgemは下記です
msgpack (1.4.2)
byebug (11.1.3
nio4r (2.5.7)
racc (1.5.2)
原因がわかりません。
ご教授の程よろしくお願いします
ターミナル Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/racc-1.5.2/ext/racc/cparse /Users/MISIAN/.rbenv/versions/2.5.1/bin/ruby -r ./siteconf20210420-84203-cyrx2t.rb extconf.rb checking for rb_ary_subseq()... *** 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}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/MISIAN/.rbenv/versions/2.5.1/bin/$(RUBY_BASE_NAME) /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:541:in `try_link0' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:559:in `try_link' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:770:in `try_func' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:1057:in `block in have_func' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:947:in `block in checking_for' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:350:in `block (2 levels) in postpone' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:320:in `open' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:350:in `block in postpone' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:320:in `open' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:346:in `postpone' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:946:in `checking_for' from /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/2.5.0/mkmf.rb:1056:in `have_func' from extconf.rb:6:in `<main>' To see why this extension failed to compile, please check the mkmf.log which can be found here: /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/extensions/x86_64-darwin-16/2.5.0-static/racc-1.5.2/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/racc-1.5.2 for inspection. Results logged to /Users/MISIAN/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/extensions/x86_64-darwin-16/2.5.0-static/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: rails was resolved to 6.1.3.1, which depends on actioncable was resolved to 6.1.3.1, which depends on actionpack was resolved to 6.1.3.1, which depends on actionview was resolved to 6.1.3.1, which depends on rails-dom-testing was resolved to 2.0.3, which depends on nokogiri was resolved to 1.11.3, which depends on racc Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
あなたの回答
tips
プレビュー