Imagemagick-6.7.6-5安装
编译IM多次,第一次遇到如下问题:
/usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC/usr/local/lib/libz.a: could not read symbols: Bad valuecollect2: ld returned 1 exit statusmake[1]: *** [magick/libMagickCore.la] 错误 1make[1]: Leaving directory `/home/lvbenwei/source/ImageMagick-6.7.6-5'make: *** [all] 错误 2
cd zlib/1.2.3 //进入zlib目录CFLAGS="-O3 -fPIC" ./configure //使用64位元的方法进行编译makemake installmake clean