export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig
#安装imagick库 (https://github.com/gographics/imagick) mac os brew install ImageMagick
run 之前执行,将imagick编译 export CGO_CFLAGS_ALLOW="-Xpreprocessor"