标签:
安装时,make总是有如下错误,最后几行 /bin/sh ./libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Wall -pthread -ldl -L/usr/lib -L/usr/lib -ldl -L/usr/lib -L/usr/lib -o utilities/gm utilities/gm.o magick/libGraphicsMagick.la libtool: link: gcc -std=gnu99 -g -O2 -Wall -pthread -o utilities/.libs/gm utilities/gm.o -L/usr/lib magick/.libs/libGraphicsMagick.so -ldl -ltiff -lfreetype -ljpeg -lpng12 -lwmflite -lXext -lX11 -lbz2 -lxml2 -lz -lm -lpthread -pthread -Wl,-rpath -Wl,/usr/local/magick/lib magick/.libs/libGraphicsMagick.so: undefined reference to `gzopen64‘ magick/.libs/libGraphicsMagick.so: undefined reference to `gzseek64‘ magick/.libs/libGraphicsMagick.so: undefined reference to `gztell64‘ collect2: ld returned 1 exit status make[1]: *** [utilities/gm] Error 1 make[1]: Leaving directory `/home/wuyue/soft/GraphicsMagick-1.3.18‘ make: *** [all] Error 2
解决方法:
详细的安装步骤,需要把之前安装的libz换成最新:
#cd zlib-1.2.8 #CFLAGS="-O3 -fPIC" ./configure --prefix=/usr/local/zlib/ #make # make install #cp /usr/local/zlib/lib/libz.so.1.2.8 /usr/lib/ #unlink /usr/lib/libz.so #link /usr/lib/libz.so.1.2.8 /usr/lib/libz.so ... .... #cd GraphicsMagick-1.3.18 #./configure #make #make install
安装之后报错
gm: /lib/libz.so.1: version `ZLIB_1.2.3.3‘ not found (required by gm)
解决办法:
[root@localhost GraphicsMagick-1.3.24]# cp /usr/local/lib/libz.so.1 /lib/
cp:是否覆盖"/lib/libz.so.1"? y
[root@localhost GraphicsMagick-1.3.24]# gm -version GraphicsMagick 1.3.24 2016-05-30 Q8 http://www.GraphicsMagick.org/ Copyright (C) 2002-2016 GraphicsMagick Group. Additional copyrights and licenses apply to this software. See http://www.GraphicsMagick.org/www/Copyright.html for details. Feature Support: Native Thread Safe yes Large Files (> 32 bit) yes Large Memory (> 32 bit) no BZIP yes DPS no FlashPix no FreeType yes Ghostscript (Library) no JBIG no JPEG-2000 yes JPEG yes Little CMS no Loadable Modules no OpenMP yes (200805) PNG yes TIFF yes TRIO no UMEM no WebP no WMF no X11 yes XML yes ZLIB yes
在32位Centos6.4上安装GraphicsMagick
标签:
原文地址:http://www.cnblogs.com/sagech/p/5651573.html