-
-
Save ryderstorm/e3bc3ffc2903adc6f9bc0fe822af76f0 to your computer and use it in GitHub Desktop.
# the instructions from here: https://stackoverflow.com/questions/3704919/installing-rmagick-on-ubuntu/31089915#31089915 | |
# worked, but only after I added in line 8 | |
sudo apt-get purge graphicsmagick graphicsmagick-dbg imagemagick-common imagemagick imagemagick-6.q16 libmagickcore-6-headers libmagickwand-dev graphicsmagick-libmagick-dev-compat | |
sudo apt-get autoremove | |
sudo apt-get install imagemagick libmagickwand-dev | |
sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/Magick-config /usr/bin/Magick-config | |
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig | |
gem install rmagick |
Work like a charm! thanks.
Its still not working for me. Giving error
The following packages have unmet dependencies:
libmagickwand-dev : Depends: libmagickwand-6.q16-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
@dinesh100ni I had exactly the same issue as you. Full disclaimer I'm not 100% sure what's going on here, and what was going on behind the scenes, but I think it was related to the libraries that had been installed by GIMP 2.9.9 developer edition but the solution was to use sudo aptitude install libmagickwand-6.q16-dev. (you might have to sudo apt-get install aptitude). For me it was the second suggestion (reached by hitting "n") that worked.. the first one didn't actually do anything. The second one downgraded some of the GIMP 2.9.9 files which I don't care about as I'm using the flatpak installed GIMP 2.10. After that I could install libmagickwand-dev
Thanks!
yesss! it works
Thanks!
Thanks! On Ubuntu 18.10 line with export PKG_CONFIG_PATH
was the key.
Thank you very much!!! It works perfectly
Thanks!
Thanks!
Thank you!
that worked, thanks
Thanks! :)
Ubuntu 20.04, rmagick 2.13.2:
I did:
sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.10/bin-Q16/Magick-config /usr/bin/Magick-config
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
sudo apt-get install libmagickwand-dev imagemagick
@dinesh100ni I had exactly the same issue as you. Full disclaimer I'm not 100% sure what's going on here, and what was going on behind the scenes, but I think it was related to the libraries that had been installed by GIMP 2.9.9 developer edition but the solution was to use sudo aptitude install libmagickwand-6.q16-dev. (you might have to sudo apt-get install aptitude). For me it was the second suggestion (reached by hitting "n") that worked.. the first one didn't actually do anything. The second one downgraded some of the GIMP 2.9.9 files which I don't care about as I'm using the flatpak installed GIMP 2.10. After that I could install libmagickwand-dev
Thanks Its Working
Just ran into a similar problem trying to install it on Arch Linux:
checking for brew... yes
checking for Ruby version >= 2.3.0... yes
checking for pkg-config... yes
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
ERROR: Can't install RMagick 4.2.4.
Can't find the ImageMagick library or one of the dependent libraries.
Check the mkmf.log file for more detailed information.
This was the solution:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
gem install rmagick
I got the path from here: https://archlinux.org/packages/extra/x86_64/imagemagick/files/
Thanks!