Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anhphamt/26dea6426259932947a037f1f8cf89e0 to your computer and use it in GitHub Desktop.
Save anhphamt/26dea6426259932947a037f1f8cf89e0 to your computer and use it in GitHub Desktop.
Installing rmagick gem on Ubuntu 16.04
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment