Red Hat 5.9 で最新の enthought canopy 1.0.1 を使用しています。ストックの python 2.4.3 の上にインストールされています。
pygtk に対して書かれたいくつかのアプリケーションがあり、それらを Enthought バージョンで使用したいと考えています。ちなみに、pygtk はネイティブの python 2.4.3 でうまく動作します。
Canopy は GUI 経由で pygtk をインストールしていないようです。easy_install を使用すると、次のエラーが表示されます。
エラーメッセージ :
~/Enthought/Canopy_64bit/User/bin/easy_install
[john@localhost site-packages]$ easy_install pygtk
Searching for pygtk
Reading http://pypi.python.org/simple/pygtk/
Reading http://www.pygtk.org/
Reading http://www.pygtk.org
Reading http://www.daa.com.au/~james/software/pygtk/
Reading http://www.daa.com.au/~james/pygtk/
Reading http://ftp.acc.umu.se/pub/gnome/binaries/win32/pygtk/2.24/
Best match: pygtk 2.24.0
Downloading http://pypi.python.org/packages/source/P/PyGTK/pygtk-2.24.0.tar.bz2#md5=a1051d5794fd7696d3c1af6422d17a49
Processing pygtk-2.24.0.tar.bz2
Writing /tmp/easy_install-_GU7D6/pygtk-2.24.0/setup.cfg
Running pygtk-2.24.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_GU7D6/pygtk-2.24.0/egg-dist-tmp-qria80
error: Setup script exited with ********************************************************************
* Building PyGTK using distutils is only supported on windows. *
* To build PyGTK in a supported way, read the INSTALL file. *
****************************************************************
./configure と make を使用して「サポートされている方法」を試すと、
次のエラーが表示されます。
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers
正しい python を見つけていますが、考えられたヘッダーをインストールする方法を判断できません。canopy にはパッケージ Debug Headers 0.1 がありましたが、Paste にインストール エラーがあるためインストールされません。
助けてくれてありがとう、
考えられたpythonに対してpygtkを動作させようとしているだけです。助言がありますか?