- Install
libmagick6
via terminal.
sudo pacman -S libmagick
- Install Homebrew for Linux. https://docs.brew.sh/Homebrew-on-Linux
- Install ImageMagick6 via homebrew.
brew install imagemagick@6
- 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'
- 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