Skip to content

Instantly share code, notes, and snippets.

@anquegi
Forked from tsara27/README.md
Created September 1, 2022 15:39
Show Gist options
  • Save anquegi/e9b23d8f5d19909cb7ee0c45e2ae43d4 to your computer and use it in GitHub Desktop.
Save anquegi/e9b23d8f5d19909cb7ee0c45e2ae43d4 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
 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment