tags:

views:

39

answers:

1

I'm trying to install the Python Imaging Library on Mac OS X 10.4, but I get errors. I'm not sure where the error starts, it's just a huge wall of text when executing sudo python setup.py install.

But the last few lines are:

...
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccNKvQpP.out (No such file or directory)
error: command 'gcc' failed with exit status 1

I've googled, but none of the results are working.

A: 

It is a good idea to install the Fink package manager, if you have not yet done so: you have a single point entry to many open-source packages; they have been configured to as to be precisely adapted to Mac OS X.

Once you have installed Fink, a simple

fink install pil

will do.

If there is any package not in Fink that you wish to install, make sure to follow their advice on what environment variables should be defined. This way, you'll have less trouble compiling more recent versions of some packages, etc., in case you need them.

EOL