twitterのgemをinstallしようとしているのですが下記のエラーが出てしまい、installできない状態です。
extconf failed, exit code 1 Gem files will remain installed in /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/unf_ext-0.0.7.5 for inspection. Results logged to /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-16/2.3.0-static/unf_ext-0.0.7.5/gem_make.out An error occurred while installing unf_ext (0.0.7.5), and Bundler cannot continue. Make sure that `gem install unf_ext -v '0.0.7.5'` succeeds before bundling. In Gemfile: twitter was resolved to 6.2.0, which depends on http was resolved to 3.0.0, which depends on http-cookie was resolved to 1.0.3, which depends on domain_name was resolved to 0.5.20170404, which depends on unf was resolved to 0.1.4, which depends on unf_ext
gem install unf_ext -v '0.0.7.5'をうつと下記のエラーが
Building native extensions. This could take a while... /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /usr/local in PATH, mode 040777 ERROR: Error installing unf_ext: ERROR: Failed to build gem native extension. current directory: /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/unf_ext-0.0.7.5/ext/unf_ext /Users/muraokayouhei/.rbenv/versions/2.3.0/bin/ruby -r ./siteconf20180306-9182-1vy6trc.rb extconf.rb checking for main() in -lstdc++... *** 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/muraokayouhei/.rbenv/versions/2.3.0/bin/$(RUBY_BASE_NAME) --with-static-libstdc++ --without-static-libstdc++ --with-stdc++lib --without-stdc++lib /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.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/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:541:in `try_link0' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:556:in `try_link' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:765:in `try_func' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:997:in `block in have_library' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:942:in `block in checking_for' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:350:in `block (2 levels) in postpone' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:320:in `open' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:350:in `block in postpone' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:320:in `open' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:346:in `postpone' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:941:in `checking_for' from /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/2.3.0/mkmf.rb:992:in `have_library' 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/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-16/2.3.0-static/unf_ext-0.0.7.5/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/unf_ext-0.0.7.5 for inspection. Results logged to /Users/muraokayouhei/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-16/2.3.0-static/unf_ext-0.0.7.5/gem_make.out
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。