Skip to content

Instantly share code, notes, and snippets.

@tsara27
Last active January 6, 2023 01:04
Show Gist options
  • Save tsara27/32ec04d810c5b634cb50b6e7c4fc7463 to your computer and use it in GitHub Desktop.
Save tsara27/32ec04d810c5b634cb50b6e7c4fc7463 to your computer and use it in GitHub Desktop.
RMagick 2.16.0 installation on Arch Linux/Manjaro

Installation Guidance

  1. Install libmagick6 via terminal.
sudo pacman -S libmagick
  1. Install Homebrew for Linux. https://docs.brew.sh/Homebrew-on-Linux
  2. Install ImageMagick6 via homebrew.
brew install imagemagick@6
  1. Install rmagick gem via terminal.
C_INCLUDE_PATH=/usr/local/include/ImageMagick-6/ PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig gem install rmagick -v '2.16.0'
  1. Probably needs
export LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/imagemagick@6/lib"
export CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/imagemagick@6/include"

or

 sudo ln -s /home/linuxbrew/.linuxbrew/Cellar/imagemagick@6/6.9.12-2/lib/libMagickWand-6.Q16.so.7 /usr/lib/libMagickWand-6.Q16.so.7
 sudo ln -s /home/linuxbrew/.linuxbrew/Cellar/imagemagick@6/6.9.12-2/lib/libMagickCore-6.Q16.so.7 /usr/lib/libMagickCore-6.Q16.so.7
 
@anquegi
Copy link

anquegi commented Sep 1, 2022

Thanks this really worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment