Intalling Python 2.1 and Image Lib 1.1.2
william
wwaldo4 at cox.net
Thu Feb 21 11:58:02 EST 2002
I am running on RedHat 7.2
I have installed Python2.1 from the rpm. The rpm installes it in
/ur/lib/python2.1
Installing the Image Library 1.1.2:
1. I copy the tar file to /usr/lib/python2.1 I untar it to
/usr/lib/python2.1/Imaging-1.1.2
2. I change directory to /usr/lib/python2.1/Imaging-1.1.2/libImaging, and
then run './configure'
3. I then run 'make'. No problems so far.
4. After compilation, I run 'make check' and get:
./coretest
>>> processing lena.ppm
>>> elapsed time: 10000
>>> as far as we tested, everything seems to be ok....
xv test.ppm
make: xv: Command not found
make: [check] Error 127 (ignored)
5. I then save /usr/lib/python2.1/Imaging-1.1.2/setup.ini as
/usr/lib/python2.1/Imaging-1.1.2/setup
6. Next I run 'make -f Makefile.pre.in boot' from
/usr/lib/python2.1/Imaging-1.1.2/ - no errors noted.
7. Then 'make'. Get error:
/usr/bin/Id: cannot find -Itc18.0
collect2: Id returned 1 exit status
make: *** [_imagingtk.so] Error 1
Which i assume to be no probelm.
8. Now the readme file statest to run:
$ PYTHONPATH=.:./PIL ; export PYTHONPATH
$ python (this command executes python1.5.2 which i don't want to
use)
>>> import_imaging
>>> import Image
No errors noted.
9. Now when I try to run it using python two :
$ PYTHONPATH=.:./PIL ; export PYTHONPATH
$ python2
>>> import_imaging
WARNING: Python C API version mismatch for module _imaging:
This Python has API version 1010, module _Imaging has version 1007.
After this long post, anyone see where i went wrong?
More information about the Python-list
mailing list