An error occurred while installing rmagick (5.2.0), and Bundler cannot continue.

To see why this extension failed to compile, please check the mkmf.log which can be found here:


  /Users/apple/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/extensions/arm64-darwin-22/2.7.0/rmagick-5.2.0/mkmf.log


extconf failed, exit code 1


Gem files will remain installed in /Users/apple/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/gems/rmagick-5.2.0 for inspection.

Results logged to /Users/apple/.asdf/installs/ruby/2.7.5/lib/ruby/gems/2.7.0/extensions/arm64-darwin-22/2.7.0/rmagick-5.2.0/gem_make.out


An error occurred while installing rmagick (5.2.0), and Bundler cannot continue.

Make sure that `gem install rmagick -v '5.2.0' --source 'https://rubygems.org/'` succeeds before bundling.


In Gemfile:

  rmagick

The fix is very simple. Do the following

brew uninstall imagemagick
brew install imagemagick@6
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"brew link --force imagemagick@6gem install rmagick

This should do it!

Comments

Popular Posts

How to pass hash in Postman

nginx: unrecognized service

Bootstrap Select Picker append add new item if search not exist

Reading Excel Sheets using "Roo" gem in ruby on rails

Add CORS to Nginx on AWS Elastic Beanstalk

Enable gzip compression on Elastic Beanstalk with nginx

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

Get video duration by URL in Ruby on Rails

site-enables nginx setting in ruby in rails