New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bundle update error #4477
Comments
I'm reading stuff about Darwin's rootless mode. See for example, CocoaPods/CocoaPods#3680. Does In general, ruby provided by OSX seems to have a lot of issues, and I don't have an OSX machine to troubleshoot anything :( |
Thanks @deivid-rodriguez, do you know how I can uninstall the pre-installed Ruby and reinstall it from scratch?
I tried, but no. The error message I got: Building native extensions. This could take a while...
ERROR: Error installing ffi:
ERROR: Failed to build gem native extension.
current directory: /usr/local/lib/ruby/gems/3.0.0/gems/ffi-1.15.0/ext/ffi_c
/usr/local/opt/ruby/bin/ruby -I /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0 -r ./siteconf20210320-12578-3jyf73.rb extconf.rb
*** 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
--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=/usr/local/Cellar/ruby/3.0.0_1/bin/$(RUBY_BASE_NAME)
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--enable-system-libffi
--disable-system-libffi
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/mkmf.rb:471:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/mkmf.rb:564:in `try_link0'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/mkmf.rb:582:in `try_link'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/mkmf.rb:684:in `try_ldflags'
from /usr/local/Cellar/ruby/3.0.0_1/lib/ruby/3.0.0/mkmf.rb:1851:in `pkg_config'
from extconf.rb:9:in `system_libffi_usable?'
from extconf.rb:42:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/usr/local/lib/ruby/gems/3.0.0/extensions/x86_64-darwin-20/3.0.0/ffi-1.15.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /usr/local/lib/ruby/gems/3.0.0/gems/ffi-1.15.0 for inspection.
Results logged to /usr/local/lib/ruby/gems/3.0.0/extensions/x86_64-darwin-20/3.0.0/ffi-1.15.0/gem_make.out |
I recommend to install ruby through |
Ok, I got Best, |
Hey please can you explain how to solve this. I do already installed |
Error Report
Questions
Please fill out answers to these questions, it'll help us figure out
why things are going wrong.
I ran the command
bundle update
I expected Bundler to update all of my gems
Instead, the process stopped. As per the log below
I tried everything, I still can’t understand
Backtrace
Environment
Bundler Build Metadata
Gemfile
Gemfile
Gemfile.lock
The text was updated successfully, but these errors were encountered: