I'm using Mac OS Sonoma 14.2.1
ruby 2.6.5
imagemagick@6: stable 6.9.13-4
I'm trying to dogem install rmagick -v 2.16.0
catching it
Building native extensions. This could take a while...ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. current directory: /Users/alenavolosina/.rbenv/versions/2.6.5/gemsets/mosreg-base_4/gems/rmagick-2.16.0/ext/RMagick/Users/alenavolosina/.rbenv/versions/2.6.5/bin/ruby -I /Users/alenavolosina/.rbenv/versions/2.6.5/lib/ruby/2.6.0 -r ./siteconf20240111-64476-m23n6.rb extconf.rbchecking for clang... yeschecking for Magick-config... yeschecking for outdated ImageMagick version (<= 6.4.9)... nochecking for presence of MagickWand API (ImageMagick version >= 6.9.0)... nochecking for Ruby version >= 1.8.5... yeschecking for stdint.h... yeschecking for sys/types.h... yeschecking for wand/MagickWand.h... noCan't install RMagick 2.16.0. Can't find MagickWand.h.*** extconf.rb failed ***Could not create Makefile due to some reason, probably lack of necessarylibraries and/or headers. Check the mkmf.log file for more details. You mayneed 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/alenavolosina/.rbenv/versions/2.6.5/bin/$(RUBY_BASE_NAME)To see why this extension failed to compile, please check the mkmf.log which can be found here: /Users/alenavolosina/.rbenv/versions/2.6.5/gemsets/mosreg-base_4/extensions/-darwin-23/2.6.0/rmagick-2.16.0/mkmf.logextconf failed, exit code 1Gem files will remain installed in /Users/alenavolosina/.rbenv/versions/2.6.5/gemsets/mosreg-base_4/gems/rmagick-2.16.0 for inspection.Results logged to /Users/alenavolosina/.rbenv/versions/2.6.5/gemsets/mosreg-base_4/extensions/-darwin-23/2.6.0/rmagick-2.16.0/gem_make.out
The command find /usr/local /opt/homebrew -name "MagickWand.h"
issues
/opt/homebrew/Cellar/imagemagick@6/6.9.13-4/include/ImageMagick-6/wand/MagickWand.h/opt/homebrew/Cellar/imagemagick/7.1.1-26/include/ImageMagick-7/MagickWand/MagickWand.h
i tried it
brew install imagemagick@6 && brew link imagemagick@6 --forceexport LDFLAGS="-L/usr/local/opt/imagemagick@6/lib"export CPPFLAGS="-I/usr/local/opt/imagemagick@6/include"export PKG_CONFIG_PATH="/usr/local/opt/imagemagick@6/lib/pkgconfig"brew uninstall pkg-config && brew install pkg-configPKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig gem install rmagick -v '2.16.0'
etc.
I tried all stackoverflow and more, tried reinstalling all dependent libraries, I also reinstalled Ruby 2.6.5, using rbenv, I'm at a dead end, please help me, good people