Skip to content
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

Won't install with latest 7.x version of imagemagick #12

Open
jawinn opened this issue Jan 30, 2020 · 1 comment
Open

Won't install with latest 7.x version of imagemagick #12

jawinn opened this issue Jan 30, 2020 · 1 comment

Comments

@jawinn
Copy link

jawinn commented Jan 30, 2020

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
@dillonwreek
Copy link

dillonwreek commented Jan 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants