I cannot use PIL because it cannot find my libjpeg!
First, I installed PIL default. And when I ran the selftest.py, it gave me:
selftest.py
IOError: dec
I had the same issue. In my case, I need to set:
JPEG_ROOT="/usr/lib64/"
instead of:
JPEG_ROOT="/usr/lib/"
Good luck.