在 Debian 上編 PIL,要先準備好

  1. libjpeg62-dev
  2. zlib1g-dev
  3. libfreetype6-dev

然後 tar xvfz /path/to/Imaging-1.1.5.tar.gz ,進入解開的原始碼目錄後:

$ /path/to/python setup.py build_ext -i
running build_ext
--------------------------------------------------------------------
PIL 1.1.5 BUILD SUMMARY
--------------------------------------------------------------------
version       1.1.5
platform      linux2 2.3.5 (#1, Jun 10 2005, 21:14:22)
              [GCC 3.3.5 (Debian 1:3.3.5-12)]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.

然後用隨附的程式測試:

$ /path/to/python selftest.py
55 tests passed.

如果如上測試成功的話,即可進行安裝:

$ /path/to/python setup.py install

後續安裝 Zope 請參考 Zope 自訂安裝

Posted by yungyuc at 15:34, 0 comment, 0 trackback.
Add a trackback
Add a comment

Your name. (required)

Your personal website. (optional)

Your email address. Will not show in page. (suggested, but optional)

Text format is "Plain Text".

Enter "yWstr"
© hover year to navigate month: powered by django