I'm trying to install rmagick 2.13.x and I'm having a few problems. I've installed imagemagick and libmagickwand-dev.
I have two folders with imagemagick (I don't know why, I've installed it with make, make install)
/usr/include/ImageMagick-6 /usr/local/include/ImageMagick-7
I'm using ruby 2.2.3 and when I run gem install rmagick 2.13.4 (also, I've tried with 2.13.2, 2.13.3), these errors appear at the end
====================================================================== Mon 16Jan17 21:41:54 This installation of RMagick 2.13.4 is configured
for Ruby 2.2.3 (x86_64-linux) and ImageMagick
make "DESTDIR=" clean
make "DESTDIR=" compiling rmagick.c In file included from rmagick.c:13:0: rmagick.h:1206:51: error: unknown type name ‘MagickPixelPacket’ extern void Color_to_MagickPixelPacket(Image *, MagickPixelPacket *, VALUE); ^ rmagick.h:1215:1: warning: parameter names (without types) in function declaration extern VALUE FilterTypes_new(FilterTypes); ^ rmagick.h:1220:50: error: unknown type name ‘MagickPixelPacket’ extern VALUE Pixel_from_MagickPixelPacket(const MagickPixelPacket *); ^ rmagick.h:1236:1: warning: parameter names (without types) in function declaration extern VALUE InterpolatePixelMethod_new(InterpolatePixelMethod); ^ rmagick.h:1249:1: warning: parameter names (without types) in function declaration extern VALUE LAYERMETHODTYPE_NEW(LAYERMETHODTYPE); ^ rmagick.h:1285:51: error: unknown type name ‘MagickPixelPacket’ void rm_set_magick_pixel_packet(Pixel *, MagickPixelPacket ); ^ rmagick.c: In function ‘MagickInfo_to_format’: rmagick.c:136:26: error: ‘MagickInfo {aka const struct _MagickInfo}’ has no member named ‘blob_support’ mode[0] = magick_info->blob_support ? '': ' '; ^ rmagick.c:139:50: error: ‘MagickInfo {aka const struct _MagickInfo}’ has no member named ‘adjoin’ mode[3] = magick_info->encoder && magick_info->adjoin ? '+' : '-'; ^ Makefile:237: recipe for target 'rmagick.o' failed make: *** [rmagick.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/lucas/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rmagick-2.13.4 for inspection. Results logged to /home/lucas/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/rmagick-2.13.4/gem_make.out
Aucun commentaire:
Enregistrer un commentaire