python, zlib, and fedora 64bits

Jonathan Curran jonc at
Sat Jan 6 11:02:25 CET 2007

On Saturday 06 January 2007 03:47, Tarek Ziadé wrote:
> Hello,
> I am trying to compile Python on a Fedora 64bits, and I can't make zlib
> work.
> a python build leads to :
> ...
> building 'zlib' extension
> gcc -pthread -shared
> build/temp.linux-x86_64-2.4/usr/local/src/Python-2.4.4/Modules/zlibmodule.o
> -L/opt/python-2.4.4/lib -L/usr/local/lib -lz -o build/lib.linux-x86_64-2.4
> /
> /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 value
> collect2: ld gab 1 als Ende-Status zurück
> running build_scripts
> running install_lib
> ...
> I've tried to recompile zlib, but didn't find any way to avoid this error
> any ideas ?
> Otherwise, does anyone has a for fedora 64bits to send me ?
> Thx
> Tarek

Tarek, I would first check and see if fedora offers python for a 64-bit 
environment. If so, it would be easier to get python up and running quickly. 
I haven't used any redhat deviant in a while, but I think the command should 
be: yum search python. This should bring up a list of packages that are 
installable. The rest should be simple as: yum install <package name>. I hope 
this helps.

- Jonathan

More information about the Python-list mailing list