集合知プログラミングの写経 Mac OS X LeopardへPILインストール
集合知プログラミングの第3章でグラフ画像を生成するので
Python Imaging Library(PIL)
http://www.pythonware.com/products/pil/
のインストールが必要。
MacOS X Leopard(10.5.5)のパソコンでインストールしたら以下のメッセージがでた。
JPEGとFREETYPEが足りない。
- -
PIL 1.1.6 BUILD SUMMARY
- -
version 1.1.6
platform darwin 2.6 (trunk:66714:66715M, Oct 1 2008, 18:36:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)]
- -
- TKINTER support ok
FREETYPE2 support not available
- -
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.
libjpegはここから
http://www.ijg.org/
freetypeはここから
http://www.freetype.org/
ソースをダウンロードしてインストール。
libjpegのインストールにはここを参考にした。
http://honana.com/library/libjpeg.html
- -
PIL 1.1.6 BUILD SUMMARY
- -
version 1.1.6
platform darwin 2.6 (trunk:66714:66715M, Oct 1 2008, 18:36:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)]
成功したみたい。