469,621 Members | 1,685 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,621 developers. It's quick & easy.

Problems installing Python Imaging Library

Hi,

I'm trying to install PIL from source on my CentOS 4.5 server. The
build summary reports that I have everything installed...

--------------------------------------------------------------------
PIL 1.1.6 BUILD SUMMARY
--------------------------------------------------------------------
version 1.1.6
platform linux2 2.3.4 (#1, Dec 11 2007, 05:28:55)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)]
--------------------------------------------------------------------
--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok

.... but if I try and build it I receive the following error:

/usr/bin/ld: /usr/local/lib/libjpeg.a(jcparam.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a
shared object; recompile with -fPIC

How do I fix this? I am currently running "python setup.py build" and
don't understand how I would change the compiling options to add the "-
fPIC" flag. I'm quite a newbie when it comes to Linux/Python so any
help you could give me would be great.

Thanks,
Nick
Mar 9 '08 #1
1 1609
On Mar 10, 3:06 am, Nick Day <n...@njday.comwrote:
Hi,

I'm trying to install PIL from source on my CentOS 4.5 server. The
build summary reports that I have everything installed...

--------------------------------------------------------------------
PIL 1.1.6 BUILD SUMMARY
--------------------------------------------------------------------
version 1.1.6
platform linux2 2.3.4 (#1, Dec 11 2007, 05:28:55)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)]
--------------------------------------------------------------------
--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok

... but if I try and build it I receive the following error:

/usr/bin/ld: /usr/local/lib/libjpeg.a(jcparam.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a
shared object; recompile with -fPIC

How do I fix this? I am currently running "python setup.py build" and
don't understand how I would change the compiling options to add the "-
fPIC" flag. I'm quite a newbie when it comes to Linux/Python so any
help you could give me would be great.

Thanks,
Nick
You should be linking against a dynamic version of libjpeg rather than
the static version. ie libjpeg.so Looks like you have locally
installed libjpeg but only built a static version.

Rgds

Tim
Mar 12 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Derek Fountain | last post: by
4 posts views Thread by Active8 | last post: by
6 posts views Thread by Fuzzyman | last post: by
2 posts views Thread by Justin Lemkul | last post: by
54 posts views Thread by seberino | last post: by
2 posts views Thread by peter.mosley | last post: by
reply views Thread by amaltasb | last post: by
2 posts views Thread by Tim Adler | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.