Gmagick最新版本安装错误

gmagick安装错误

cc-shared  .libs/gmagick_helpers.o .libs/gmagick_methods.o .libs/gmagick.o .libs/gmagickdraw_methods.o .libs/gmagickpixel_methods.o  -L/usr/local/webserver/GraphicsMagick/lib /usr/local/webserver/GraphicsMagick/lib/libGraphicsMagickWand.a -L/usr/lib /usr/local/webserver/GraphicsMagick/lib/libGraphicsMagick.a  -Wl,-rpath -Wl,/usr/local/webserver/GraphicsMagick/lib -Wl,-rpath -Wl,/usr/local/webserver/GraphicsMagick/lib -Wl,-soname -Wl,gmagick.so -o .libs/gmagick.so
/usr/bin/ld: /usr/local/webserver/GraphicsMagick/lib/libGraphicsMagickWand.a(drawing_wand.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/webserver/GraphicsMagick/lib/libGraphicsMagickWand.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

make: *** Error 1

系统:

Linux test004 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux


使用64位元编译就行
CFLAGS="-O3 -fPIC" ./configure

你可能感兴趣的:(Gmagick最新版本安装错误)