I am getting an install error (from source, ImageMagick-6.7.5, CentOS 5.7):
/usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
This same issue was discussed in
an old tag. The answer that worked for the poster was:
Do as the exception suggests. Remove the Zlib distribution and include -fPIC on the compile command line. Now try configuring / installing ImageMagick again.
I succeed in adding the -fPIC compile command, but what is meant with 'remove the Zlib distribution'? If I attempt to remove this package from my system I get warned of a LOT of dependencies that will also be removed, so this does not seem like a good solution. Also, I believe I need Zlib for png images?