Install PIL on Linux Mint 11 x64
JPEG_ROOT = '/usr/lib/x86_64-linux-gnu', '/usr/include' # libjpeg and libpng are here.
ZLIB_ROOT = JPEG_ROOT
TIFF_ROOT = None
FREETYPE_ROOT = JPEG_ROOT
LCMS_ROOT = None
# prepare:
- libjpeg62-dev
- zlib1g-dev
- libfreetype6-dev
- liblcms1-dev
- python-dev
# edit setup.py
TCL_ROOT = NoneJPEG_ROOT = '/usr/lib/x86_64-linux-gnu', '/usr/include' # libjpeg and libpng are here.
ZLIB_ROOT = JPEG_ROOT
TIFF_ROOT = None
FREETYPE_ROOT = JPEG_ROOT
LCMS_ROOT = None
# build & test & install
- python setup.py build_ext -i
- python selftest.py
- sudo python setup.py install
沒有留言:
張貼留言