Won't install with latest 7.x version of imagemagick
Opened this issue · 1 comments
Using the current install instructions, installation will fail on OSX.
Can't install RMagick 2.16.0. Can't find MagickWand.h.
*** extconf.rb failed ***
brew install imagemagick
will install imagemagick "stable 7.0.9-20".
Then the gem install tileup
will fail at "checking for presence of MagickWand API (ImageMagick version >= 6.9.0)... no". This appears to be at least in part because the directory structure has changed in the new version.
Based on the thread linked above and this stackoverflow, I found that installing the 6 version and linking it will allow installation to complete successfully, until changes are made to support v7:
brew unlink imagemagick
brew install imagemagick@6 && brew link imagemagick@6 --force
I'm having the same issue but with magick-config. I'm on wsl ubuntu, I installed homebrew and did brew install imagemagick. I tried to unlink and reinstall like you wrote but it still won't work..
ERROR: Error installing tileup:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.7.0/gems/rmagick-2.16.0/ext/RMagick
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220119-2598-1t3kta7.rb extconf.rb
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... no
Can't install RMagick 2.16.0. Can't find Magick-config or pkg-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
EDIT: following this stackoverflow topic I managed to fix it with the approved answer. You need to install libmagick9-dev with:
sudo apt-get install libmagickwand-dev imagemagick