LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 959|回复: 9

为何我的gDesklets不能用。

[复制链接]
发表于 2008-2-22 15:33:28 | 显示全部楼层 |阅读模式
为何我的gDesklets不能用。我用的是OPENSUSE10。3
gDesklets为源安装
$gdesklets start
显示:
正在启动 gdesklets-daemon...
Cannot establish connection to daemon: timeout!
The log file might help you solving the problem.
我看了下log
=== Unhandled error! Something bad and unexpected happened. ===

[EXC]No module named gtk
in /usr/lib/gdesklets/gdesklets-daemon: line 127 <module>
in /usr/lib/gdesklets/gdesklets-daemon: line 108 _gdesklets_main
in /usr/lib/gdesklets/main/__init__.py: line 114 init
in /usr/lib/gdesklets/utils/ErrorFormatter.py: line 118 _new_imp
[EXC]/usr/lib/gdesklets/utils/ErrorFormatter.py

[---]  113 # give us an absolute path.
[---]  114 #
[---]  115 _old_imp = __import__
[---]  116 def _new_imp(name, globs = {}, locls = {}, fromlist = []):
[---]  117
[ERR]> 118     module = _old_imp(name, globs, locls, fromlist)
[---]  119     # builtin modules have no "__file__" attribute, so we have to check for it
[---]  120     if (module):
[---]  121         if (hasattr(module, "__file__")):
[---]  122             module.__file__ = os.path.abspath(module.__file__)
[---]  123         return module
[---]  124     else:
 楼主| 发表于 2008-2-22 15:34:31 | 显示全部楼层
自己编译出现到make 这一步最后报错
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -Os -g -MT tiling.lo -MD -MP -MF .deps/tiling.Tpo -c tiling.c  -fPIC -DPIC -o .libs/tiling.o
tiling.c:4:25: error: pygtk/pygtk.h: No such file or directory
tiling.c:379: error: expected specifier-qualifier-list before 'PyGObject'
tiling.c:379: error: expected ',' or ';' before ')' token
make[2]: *** [tiling.lo] 错误 1
make[2]: Leaving directory `/home/EN/Desktop/gdesklets-0.36/utils'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/EN/Desktop/gdesklets-0.36'
make: *** [all] 错误 2
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-22 15:35:39 | 显示全部楼层
查了一下需要的包,如下
2. Requirements (the package names are the debian ones!)
---------------
  * Python 2.3 or higher, if you want to compile gdesklets you'll have to
    install the development package, too!

  * SuSE users will need the additional python-xml package, gDesklets won't
    work without it!

  * python-gtk2 2.10 or higher (*)

  * python-gtk2-dev if you want to compile gDesklets

  * python-pyorbit 2.0.1 (**)

  * python-gnome2 2.6.x or higher (***)

  * python-gnome2-dev if you want to compile gDesklets

  * libexpat (try to avoid 1.95.7 since it seems to be buggy!)

  * libgtop2 (2.8.0 or higher is recommended)

  * libgtop2-dev if you want to compile gDesklets

  * librsvg (2.8.0 or higher from http://librsvg.sf.net)

  * librsvg-dev if you want to compile gDesklets

  * some sensors or controls may have extra requirements
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-22 15:40:18 | 显示全部楼层
The following remarks apply to Mandrake 10.1, SuSE 9.2 and Fedora Core 3. Of
course, they apply to older versions as well:

(*) SuSE, Mandrake and Fedora 2 & 1 are shipping versions which are too old,
so you will have to find newer versions, the ones currently shipped will not
work! You can try to find them at rpmseek.com or rpmfind.net.

(**) Recent Mandrake and older SuSE or Fedora versions ship 2.0.0 which won't
work; you have to upgrade to 2.0.1.

(***) SuSE, Mandrake and Fedora 2 & 1 are shipping old versions; please find
newer versions for your distribution. These distributions split up
gnome-python2 in small packages. To avoid problems install every gnome-python2
package.

Debian Sarge has all the necessary packages and should work out of the box.
gDesklets won't work on older versions of Debian.

Pascal Bleser created some packages for SuSE 9.2. They are available at
http://linux01.gwdg.de/~pbleser/

gDesklets is available in the Fedora Extras software collection for
Fedora Core 3 and later.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-22 16:25:16 | 显示全部楼层
我把python-gtk等又重新安装了一遍,信息成了下边。
gdesklets start

You're running gDesklets for the first time.
gDesklets will start a requirements check now...

Checking requirements:
- sys ... found
- xml.parsers.expat ... found
- xml.sax ... found
- gtk ... missing
Version check failed.

GTK python bindings (pygtk2) version >= 2.4.0 and GTK+ version >= 2.4.0 are required.

Please make sure that the required software is installed.
Also try to avoid having multiple versions of a library/binding on your system.
gDesklets won't work if you don't have all necessary dependencies installed
on your system.

THE STARTUP WILL BE CANCELLED NOW!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-23 08:32:01 | 显示全部楼层
如题如题如题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-23 18:37:07 | 显示全部楼层
哪位大虾帮帮忙哈~~~
回复 支持 反对

使用道具 举报

发表于 2008-2-23 20:17:24 | 显示全部楼层
把gtk-devel或gtk2-devel装上试试看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-23 23:49:03 | 显示全部楼层
装的有哈,可是不行
回复 支持 反对

使用道具 举报

发表于 2008-2-24 01:34:43 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表