imagemagickインストールの問題:コンパイルエラーのようです。

imagemagickインストールの問題:コンパイルエラーのようです。

新しい(Linux Mint 18)LinuxインストールにImageMagick 6.4をインストールしようとしています。 6.4は私たちのサーバーのバージョンなので、必要です。

tar.gzをダウンロードして解凍して実行してconfigureみましたmake。すぐに次のような多くのエラーが発生します。

$ make

make  all-am
make[1]: Entering directory '/home/max/software/imagemagick/6.4/ImageMagick-6.4.0'
/bin/bash ./libtool --silent --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I./config   -I/usr/include/freetype2 -I/usr/include/libxml2  -g -O2 -Wall -W -pthread -MT coders/coders_art_la-art.lo -MD -MP -MF coders/.deps/coders_art_la-art.Tpo -c -o coders/coders_art_la-art.lo `test -f 'coders/art.c' || echo './'`coders/art.c
In file included from coders/art.c:5
./magick/quantum-private.h: In function ‘PopDoublePixel’:
./magick/quantum-private.h:85:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   *((double *) quantum)=(double) (pixel*quantum_state->scale+
   ^
./magick/quantum-private.h: In function ‘PopFloatPixel’:
./magick/quantum-private.h:115:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   *((float *) quantum)=(float) ((double) pixel*quantum_state->scale+

In file included from magick/blob.c:65:0:
/usr/include/zlib.h:1536:30: note: expected ‘gzFile {aka struct gzFile_s *}’ but argument is of type ‘FILE * {aka struct _IO_FILE *}’
ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
                          ^

私はコンパイルについてはよくわかりませんが、これらはすべてコードをコンパイルまたは実行したときに何らかの根本的な失敗のようです。たくさんあります。私が何を見逃しているのか、それとも何が間違っているのかを推測できる人はいますか?

編集:全体の出力は次のとおりです。http://pastebin.com/v01aj8hu

ベストアンサー1

同じ問題が見つかりましたが、これはビルドシステムと関係があり、CおよびC ++標準ライブラリはImageMagickバージョンに必要なものよりも最新でした。 ImageMagickバージョンをアップグレードすると、問題が解決する可能性があります。

別の解決策は、コンテナまたは他のマシンを使用して構築することです。

この情報が他の人に役立つことを願っています:)。

おすすめ記事