Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to import Imagick package

Tags:

go

imagick

I am trying to install the Imagick package for Go. I run the command:

go get gopkg.in/gographics/imagick.v3/imagick

As per the documentation but I always get this error:

# gopkg.in/gographics/imagick.v3/imagick
src/gopkg.in/gographics/imagick.v3/imagick/affine_matrix.go:8:35: fatal error: MagickWand/MagickWand.h: No such file or directory
 #include <MagickWand/MagickWand.h>
                                   ^
compilation terminated.

I've looked online but have yet to find a solution that works. I have tried using apt-get libmagickwand-dev and that did not resolve the issue. I am currently running Ubuntu 14.04 LTS.

like image 989
Sum Truth Avatar asked Mar 08 '23 05:03

Sum Truth


1 Answers

Also as per the documentation, imagick.v3 supports ImageMagick version 7 and up. You have ImageMagick version 6.7.7-10. This is too old for imagick v3, and also too old for imagick v2, but v1 may work.

like image 91
hobbs Avatar answered Mar 09 '23 19:03

hobbs