Thursday, March 01, 2018

Installing Graphicsmagick on Mac

cd /usr/local/src
curl --remote-name --location ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.27a.tar.gz

tar -xzvf GraphicsMagick-1.3.27a.tar.gz
cd GraphicsMagick-1.3.27a

./configure CC=clang \
  LDFLAGS="-L/usr/local/libjpeg/lib -L/usr/local/libpng/lib -L/usr/local/libtiff/lib" \
  CPPFLAGS="-I/usr/local/libjpeg/include -I/usr/local/libpng/include -I/usr/local/libtiff/include" \
  --prefix=/usr/local/mac-dev-env/graphicsmagick-1.3.27a
make
sudo make install

sudo ln -s mac-dev-env/graphicsmagick-1.3.27a /usr/local/graphicsmagick


echo 'export PATH=/usr/local/graphicsmagick/bin:$PATH' >> ~/.bash_profile

source ~/.bash_profile

gm version

Reference

Installing graphicsmagick on Mac

Installing phantomjs on Mac 10.10.5

Cliver::Dependency::NotFound: Could not find an executable ["phantomjs"] on your path.

brew install phantomjs

MiniMagick::Invalid: ImageMagick/GraphicsMagick is not installed

brew install graphicsmagick

Error: SHA256 mismatch
Expected: 2f1e960d92ce3b3abd03d06dfec9637dfbd22febf107a536b44f7a47c60659f6
Actual: 7a07d3f7cca5c0b38ca811984ef8da536da32932d68c1a6cce33ec2462b930bf
Archive: /Users/bparanj/Library/Caches/Homebrew/libpng-1.6.34.tar.xz


brew uninstall libpng
brew cleanup -s
brew install graphicsmagick