lunedì 26 novembre 2012

python pil and ubuntu 12.10


python PIL on ubuntu 12.10
install deps:
sudo apt-get install libfreetype6-dev libjpeg62-dev zlib1g-dev
ubuntu 12.10 uses stanges path for this library so, we make symlinks
for 32bit:
sudo ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib
sudo ln -s /usr/lib/i386-linux-gnu/libfreetype.so /usr/lib
sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib
for 64bit:
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib

enjoy :-)

Nessun commento: