前提・実現したいこと
ここに質問の内容を詳しく書いてください。
Ruby on Railsの環境構築でbundle updateできず躓いています。
エラーメッセージらしきところをコピペしてみましたので、何が原因なのか教えてくださると助かります
発生している問題・エラーメッセージ
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.urrent directory: An error occurred while installing ffi (1.11.1), and Bundler cannot continue. Make sure that `gem install ffi -v '1.11.1' --source 'https://rubygems.org/'` succeeds before bundling.
該当のソースコード
enoMacBook-puro:sample_app a$ bundle update clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [libffi.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** ["/Users/a/sample_app/vendor/bundle/ruby/2.3.0/gems/ffi-1.11.1/ext/ffi_c"/libffi-i386/.libs/libffi_convenience.a] Error 2 make failed, exit code 2 Gem files will remain installed in /Users/a/sample_app/vendor/bundle/ruby/2.3.0/gems/ffi-1.11.1 for inspection. Results logged to /Users/a/sample_app/vendor/bundle/ruby/2.3.0/extensions/universal-darwin-17/2.3.0/ffi-1.11.1/gem_make.out An error occurred while installing ffi (1.11.1), and Bundler cannot continue. Make sure that `gem install ffi -v '1.11.1' --source 'https://rubygems.org/'` succeeds before bundling. enoMacBook-puro:sample_app a$ sudo gem install ffi Password: Building native extensions. This could take a while... ERROR: Error installing ffi: ERROR: Failed to build gem native extension. clang: error: unsupported option '-print-multi-os-directory' clang: error: no input files clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [libffi.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** ["/Library/Ruby/Gems/2.3.0/gems/ffi-1.11.1/ext/ffi_c"/libffi-i386/.libs/libffi_convenience.a] Error 2 make failed, exit code 2 Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/ffi-1.11.1 for inspection. Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/ffi-1.11.1/gem_make.out
試したこと
bundle updateが出来ず、エラーメッセージを参考にffiのインストールを試みてみたものの、そちらもうまくいきません。ffiはバージョンを落としてもインストールできませんでした。
補足情報(FW/ツールのバージョンなど)
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin17]
Rails 5.2.3
ffi 1.11.1
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。