[Image-SIG] Installation help wanted

Russell E. Owen rowen at cesmail.net
Wed Jan 12 19:53:21 CET 2005


I'm running into trouble with a linux install of PIL.

My setup:
- libjpeg and libz are in /usr/lib
- the python and tcl/tk I want to use are on /net/python, a 
network-shared volume. Python 2.3.4 is /net/python/bin/python and was 
built with tcl/tk 8.4.6 which are in /net/python/lib, 
/net/python/include etc.

I modify my environment as follows:
setenv PATH "/net/python/bin/:"$PATH
setenv LD_LIBRARY_PATH "/net/python/lib"
setenv TCLLIBPATH "/net/tcllib"


I tried the simple installation first. Building libImaging with 
./configure and make seemed to go fine. ./configure finds libjpeg and 
libz and there were no warnings or errors.

However, the setup.py build step fails...:
$ /net/python/bin/python setup.py build
...
build/temp.linux-i686-2.3/Tk/tkImaging.o -LlibImaging -lImaging -ltk8.4 
-ltcl8.4 -o build/lib.linux-i686-2.3/_imagingtk.so
/usr/bin/ld: cannot find -ltk8.4
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1


So I tried copying Setup.in to Setup and editing it. I made the location 
of libjpeg, libz and tcl/tk explicit and didn't mess with anything else:
        -I/usr/include -L/usr/lib -ljpeg \
...
        -I/usr/include -L/usr/lib -lz
...
_imagingtk  _imagingtk.c \
        -IlibImaging Tk/tkImaging.c \
        -I/astro/net/python/include -L/astro/net/python/lib -ltcl8.3 
-ltk8.3 \
        -L/usr/X11R6/lib -lX11 

I then did what I thought the instructions said to do:
$ cd libImaging
$ ./configure
$ make
$ cd ..
# examine Makefile.pre.in; nothing obvious to fix (?)
$ make -f Makefile.pre.in boot 
$ make
gcc -pthread -fPIC -DNDEBUG -g -O3 -Wall -Wstrict-prototypes 
-I/net/python/include/python2.3 -I/net/python/include/python2.3 @DEFS@   
-IlibImaging -I/usr/include -I/usr/include -c ././_imaging.c -o 
./_imaging.o
gcc: cannot specify -o with -c or -S and multiple compilations
make: *** [_imaging.o] Error 1



Any hints on what to try next?

-- Russell



More information about the Image-SIG mailing list