Similar to my message of 9-May-2002, but updated with regards to python-2.2.3-2, the official rebase-2.2-2 package which was not available last May, and the recent tk-8.4 release (tcltk-20030214-1). To compile PIL on cygwin, you need: gcc/binutils python-2.2.3-2 rebase-2.2-2 tcltk-20030214-1 ( special: tk-includes-8.4.tar.bz2 ; see below ) 1) grabbed the various include files from the naked-tk CVS repo on sourceware, and put them into /usr/include/tk/* and /usr/include/tk/X11/*. You can (temporarily) get them here: http://www.neuro.gatech.edu/users/cwilson/cygutils/testing/ tk-includes-8.4.tar.bz2 2) downloaded the PIL 1.1.4 archive, unpacked it 3) applied the attached patch 4) fixed up some symlinks cd /usr/lib ln -s libtk84.a libtk8.4.a ln -s libtcl84.a libtcl8.4.a 5) rebased a bunch of DLLs using Jason's rebase tool: close all cygwin processes, including rxvt windows start a DOS-box bash shell run rebaseall -v 6) Followed the instructions to build and install PIL cd Imaging-1.1.4/libImaging ./configure make cd .. python setup.py build python setup.py install 7) rebase, but this time including the PIL dll's first, set things up to 'trick' rebaseall cd / find /usr/lib/python2.2/site-packages -name "*.dll" > \ /etc/setup/python-site-packages.lst gzip /etc/setup/python-site-packages.lst then, close all cygwin processes, including rxvt windows start a DOS-box bash shell run rebaseall -v 8) ran the self-tests, it worked. viewer.py also worked...very impressive. python selftest.py python Scripts/viewer.py 9) Also, you might want to install the following files into /usr/include/python2.2/Extensions/ ImConfig.h ImPlatform.h Imaging.h