Problems installing PIL on linux
Paul Winkler
slinkp23 at yahoo.com
Wed Jul 26 12:30:42 EDT 2000
Hi,
I'm trying to install PIL on a RedHat 6.1 system.
I've downloaded the Imaging-1.1.tar.gz from the PIL website.
Following the instructions in the README, I get as far as step 8,
the actual build. It looks like step 7 (make -f Makefile.pre.in
boot) is finishing OK, but the created makefile does not work. I get
this:
# make
make: *** No rule to make target
`/usr/lib/python at VERSION@/config/Makefile', needed by `sedscript'.
Stop.
I found a couple of messages on dejanews referencing similar
problems, but I didn't see any solutions posted. I browsed the
imaging sig archives and couldn't find anything relevant.
Details: let's go through the process...
Step 1: jpeg and png support ... I have RedHat 6.1 so I assume this
is OK.
Let's see what I've got:
# rpm -q libjpeg libpng zlib
libjpeg-6b-9
libpng-1.0.3-4
zlib-1.1.3-5
# rpm -q libpng-devel libjpeg-devel zlib-devel
libpng-devel-1.0.3-4
libjpeg-devel-6b-9
zlib-devel-1.1.3-5
Looks good to me.
Step 2: make sure build packages are there...
# rpm -q python python-devel
python-1.5.2-13
python-devel-1.5.2-13
Looks good.
Step 3: Unpack the PIL distribution ... no problem
Step 4: . Now build the Imaging core library (libImaging.a):
$ cd Imaging-1.1/libImaging
$ ./configure
$ make
This all goes fine.
Step 5. To check that this library works as it should, type:
$ make check
OK, I get a nice pretty little picture.
Step 6. Edit Setup if necessary to find jpeg and zlib libraries...
I don't think I need to do this.
Step 7. Make a makefile. This seems to go OK... long output listing
follows...
and yes, I end up with a Makefile.
[root at slink Imaging-1.1]# make -f Makefile.pre.in boot
rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
VERSION=$VERSION \
installdir=$installdir \
exec_installdir=$exec_installdir \
Makefile
make[1]: Entering directory `/usr/local/lib/python/Imaging-1.1'
sed -n \
-e '1s/.*/1i\\/p' \
-e '2s%.*%# Generated automatically from Makefile.pre.in by
sedscript.%p' \
-e '/^VERSION=/s/^VERSION=[ ]*\(.*\)/s%@VERSION[@]%\1%/p' \
-e '/^CC=/s/^CC=[ ]*\(.*\)/s%@CC[@]%\1%/p' \
-e '/^CCC=/s/^CCC=[ ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
-e '/^LINKCC=/s/^LINKCC=[ ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
-e '/^OPT=/s/^OPT=[ ]*\(.*\)/s%@OPT[@]%\1%/p' \
-e '/^LDFLAGS=/s/^LDFLAGS=[ ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
-e '/^DEFS=/s/^DEFS=[ ]*\(.*\)/s%@DEFS[@]%\1%/p' \
-e '/^LIBS=/s/^LIBS=[ ]*\(.*\)/s%@LIBS[@]%\1%/p' \
-e '/^LIBM=/s/^LIBM=[ ]*\(.*\)/s%@LIBM[@]%\1%/p' \
-e '/^LIBC=/s/^LIBC=[ ]*\(.*\)/s%@LIBC[@]%\1%/p' \
-e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
-e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
-e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \
-e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
-e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
-e '/^LINKFORSHARED=/s/^LINKFORSHARED=[
]*\(.*\)/s%@LINKFORSHARED[@]%\1%
/p' \
-e '/^prefix=/s/^prefix=\(.*\)/s%^prefix=.*%prefix=\1%/p' \
-e
'/^exec_prefix=/s/^exec_prefix=\(.*\)/s%^exec_prefix=.*%exec_prefix=\1%/p'
\
/usr/lib/python1.5/config/Makefile >sedscript
echo "/^#@SET_CCC@/d" >>sedscript
echo "/^installdir=/s%=.*%= /usr%" >>sedscript
echo "/^exec_installdir=/s%=.*%=/usr%" >>sedscript
echo "/^srcdir=/s%=.*%= .%" >>sedscript
echo "/^VPATH=/s%=.*%= .%" >>sedscript
echo "/^LINKPATH=/s%=.*%= %" >>sedscript
echo "/^BASELIB=/s%=.*%= %" >>sedscript
echo "/^BASESETUP=/s%=.*%= %" >>sedscript
sed -f sedscript ./Makefile.pre.in >Makefile.pre
/usr/lib/python1.5/config/makesetup \
-m Makefile.pre -c /usr/lib/python1.5/config/config.c.in
Setup -n /usr
/lib/python1.5/config/Setup
make -f Makefile do-it-again
make[2]: Entering directory `/usr/local/lib/python/Imaging-1.1'
/usr/lib/python1.5/config/makesetup \
-m Makefile.pre -c /usr/lib/python1.5/config/config.c.in
Setup -n /usr
/lib/python1.5/config/Setup
make[2]: Leaving directory `/usr/local/lib/python/Imaging-1.1'
make[1]: Leaving directory `/usr/local/lib/python/Imaging-1.1'
[root at slink Imaging-1.1]#
OK, but now we come to the problem.
Step 8. To build a dynamically loaded module, just type "make":
make: *** No rule to make target
`/usr/lib/python at VERSION@/config/Makefile', needed by `sedscript'.
Stop.
OK, so something's really wrong with my Makefile, even though none
of the previous steps complained. I don't think this section is
supposed to look like this:
# === Variables from configure (through sedscript) ===
VERSION= @VERSION@
CC= @CC@
LINKCC= @LINKCC@
SGI_ABI= @SGI_ABI@
OPT= @OPT@
LDFLAGS= @LDFLAGS@
DEFS= @DEFS@
LIBS= @LIBS@
LIBM= @LIBM@
LIBC= @LIBC@
RANLIB= @RANLIB@
MACHDEP= @MACHDEP@
SO= @SO@
LDSHARED= @LDSHARED@
CCSHARED= @CCSHARED@
LINKFORSHARED= @LINKFORSHARED@
Any ideas?
--
................. paul winkler ..................
slinkP arts: music, sound, illustration, design, etc.
web page: http://www.ulster.net/~abigoo
A member of ARMS: http://www.reacharms.com
or http://www.mp3.com/arms
More information about the Python-list
mailing list