Last active
May 17, 2023 00:28
-
-
Save ryderstorm/e3bc3ffc2903adc6f9bc0fe822af76f0 to your computer and use it in GitHub Desktop.
Installing rmagick gem on Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks Its Working