之前為了 VMware 裡 2.6 Linux 系統時間過慢的問題 重編核心 ,不過今天驚覺其實只要加上 clock=pit 核心參數就可以了。

傷腦筋,之前怎麼沒有測到呢。

Posted by yungyuc at 22:54, 2 comments, 0 trackback.

在 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.

剛剛 學會作 patch 。這是 patch 檔

Posted by yungyuc at 12:44, 2 comments, 0 trackback.
Change to page (10 entries in each page): 1
© hover year to navigate month: powered by django