2009-09-20 38 views
1

呈現症狀:autogen禁用構建slideshowshuffle和pythonconsole,報告「無python支持」。平臺是Ubuntu 9.04,Jaunty Jackalope;侏儒2.26.1。Gnome Python插件的眼睛不會自動啓動,因爲檢查PYGTK失敗

日誌摘錄:

checking for a Python interpreter with version >= 2.3... python 
checking for python... /usr/bin/python 
checking for python version... 2.6 
checking for python platform... linux2 
checking for python script directory... ${prefix}/lib/python2.6/site-packages 
checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages 
checking for PYGTK... no 
configure: WARNING: Python not found, disabling python support 

證據表明,Python和PyGTK的安裝:

Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import pygtk 
>>> 

我注意到的PyGTK的資本,這是環境變量常見。沒有PYGTK環境變量。

你的搜索 - 「PyGTK的環境 變量」 - 沒有匹配的 文件。

從/ usr/share/doc/python-gtk2-doc/html生成的樹中的PYGTK的grep沒有返回任何行。

回答

1

嘗試安裝「python-gtk2-dev」包。你可以確保你有它

pkg-config --list-all | grep pygtk-2.0 

我認爲,你使用從python的是「python-gtk2」。