[RUBY] Error with bundle install after upgrading to Catalina

error contents

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


An error occurred while installing ffi (1.13.0), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.13.0'` succeeds before bundling.

In Gemfile:
  guard-rspec was resolved to 4.7.3, which depends on
    guard was resolved to 2.16.2, which depends on
      listen was resolved to 3.2.1, which depends on
        rb-inotify was resolved to 0.10.1, which depends on

What I tried

$ gem install ffi -v '1.13.0'  
Building native extensions. This could take a while...
ERROR:  Error installing ffi:
        ERROR: Failed to build gem native extension.

Even if the command is executed according to the error, an error occurs

$ xcode-select --install                             
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

It was already installed.


$ sudo xcodebuild -license accept   

Solved when I executed.

Recommended Posts

Error with bundle install after upgrading to Catalina
mysql2 fails to install with bundle install
After setting database to mysql, bundle install causes an error
bundle install error
bundle install error
Error when bundle install
What to do if mysql2 gets a bundle install error
[Error resolution] How to resolve the error "Could not find a JavaScript runtime." After upgrading Catalina!
What to do after Vagrant install
Error summary in bundle install. memorandum
How to install Pry after building Rails development environment with Docker
I get an error with bundle install and puma cannot be installed.
What to do if an error occurs when nokogiri enters when bundle install
Error when starting eclipse after upgrading JDK
[Rails] Could not locate Gemfile with bundle install
Error in bundle install when running rails new
Error deploying rails5 + Mysql to heroku with Docker-compose
Switch versions with alternatives after yum install java
How to redirect after user login with Spring-security
After installing'devise''bootstrap' of gemfile with rails, what to do when url is an error
A story about an error collating checksum values after npm install with Laravel Homestead
composer install error
How to install & import Auto Gluon with Google Colaboratory
Bundle install with docker + rails6 does not reflect gem
About the error caused by bundle install ~ puma Gem ~
[Rails] How to deal with URL changes after render
Refusing to install package with name "webpack" under a package
How to install Gradle and Kotlin with SDKMAN (Mac)
Suddenly bundle install is not possible due to gem'ffi'