Building Python PIL for JPEG looks fine, but selftest fails

I'm on Fedora Core 6 (64 bit)

after "yum install libjpeg-devel" I downloaded and built PIL. He gives the message:

--- JPEG support ok

It seems that JPEG is created well, but when you run selftest.py:

IOError: jpeg decoder not available

Why does he seem to have built correctly but failed to perform a selftest?

+3
source share
2 answers

You probably need more packages. Install libjpegthat includes /usr/lib/libjpeg.so*and try again.

In my Fedora (other version), PIL is installed using python-imagingrpm:

ldd _imaging.so
    linux-gate.so.1 =>  (0x004c6000)
    libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00a07000)
    libz.so.1 => /lib/libz.so.1 (0x00b91000)
    libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0x00110000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00ee8000)
    libc.so.6 => /lib/libc.so.6 (0x00260000)
    libdl.so.2 => /lib/libdl.so.2 (0x003c9000)
    libutil.so.1 => /lib/libutil.so.1 (0x00fcd000)
    libm.so.6 => /lib/libm.so.6 (0x00ad1000)
    /lib/ld-linux.so.2 (0x007a1000)

, PIL libjpeg.so.

+1

, PIL .

+1

Source: https://habr.com/ru/post/1705463/


All Articles