[Tutor] Installing PIL

Olli Rajala olli.s.rajala at tut.fi
Thu Oct 28 12:18:53 CEST 2004


Hi again...

Thanks for some suggestions about PIL, it seems to be enough for my
needs. Well, it would probably be, if I just could install it... I'm
building my site in the linux-machine at school, so I have only normal
account and so on, but it shouldn't matter, should it? I don't know
what info to give you, but I give everything I think is relevant. If
something is missing, please forgive me, I'll try to dig it up then.

So, here's the problem.

**************************************************
[mozart] ~/python > tar zcvf Imaging-1.1.4.tar.gz 
<clip>
[mozart] ~/python > cd Imaging-1.1.4/libImaging/
[mozart] ~/python/Imaging-1.1.4/libImaging > ./configure
creating cache ./config.cache
checking for --without-gcc... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for ar... ar
checking MACHDEP... linux2
checking for jpeg_destroy_compress in -ljpeg... yes
checking for deflate in -lz... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of float... 4
checking size of double... 8
checking for working const... yes
checking for prototypes... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating ImConfig.h
[mozart] ~/python/Imaging-1.1.4/libImaging > make

< no errors or anything like that>

[mozart] ~/python/Imaging-1.1.4/libImaging > cd ..
[mozart] ~/python/Imaging-1.1.4 > python setup.py build
Traceback (most recent call last):
  File "setup.py", line 287, in ?
    extra_compile_args=EXTRA_COMPILE_ARGS,
NameError: name 'EXTRA_COMPILE_ARGS' is not defined
[mozart] ~/python/Imaging-1.1.4 > python setup.py install
Traceback (most recent call last):
  File "setup.py", line 287, in ?
    extra_compile_args=EXTRA_COMPILE_ARGS,
NameError: name 'EXTRA_COMPILE_ARGS' is not defined

[mozart] ~/python/Imaging-1.1.4 > python 
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
>>> 

**************************************************
So, what should I do, any ideas?

TIA, 
-- 
<><
"Quite normal guy"
Olli Rajala


More information about the Tutor mailing list