sudo apt-get install imagemagick libmagickwand-dev
go get gopkg.in/gographics/imagick.v2/imagick
sudo nano /etc/environment
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
CGO_CFLAGS_ALLOW='-Xpreprocessor'
source /etc/environment
pkg-config --cflags --libs MagickWand
brew install pkg-config imagemagick@6
go get gopkg.in/gographics/imagick.2/imagick
- go run main.go config.json
echo $PKG_CONFIG_PATH
- `find /usr/local/Cellar -name "ImageMagick*.pc"
- https://trac.macports.org/wiki/Migration
export PKG_CONFIG_PATH="/path/to/imagemagick/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export CGO_CFLAGS_ALLOW='-Xpreprocessor'
pkg-config --cflags --libs MagickWand
- Fix Import of config.json file ??