在 Debian 上編 PIL,要先準備好
- libjpeg62-dev
- zlib1g-dev
- 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.
Navigate
- Previous: 我對 COREBlog 1.1 作的小修改 @2005/06/11
- Next: Linux 2.6 在 VMware 裡系統時間 (clock) 過慢 (too slow) 問題的簡單解法 @2005/06/11
Add a trackback
Please send trackback to: http://blog.seety.org/everydaywork/2005/6/11/353/trackback/.
Add a comment