安装source navigator 出了个问题
前面./configuremake
make instrall
还好。
但一运行就跳出来这一堆
# snavigator
Can't find a usable tk.tcl in the following directories:
/usr/local/share/tk8.3
/usr/local/share/tk8.3/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll units
}"
(file "/usr/local/share/tk8.3/listbox.tcl" line 182)
invoked from within
"source "
invoked from within
"if { && \
} {
source
so..."
(file "/usr/local/share/tk8.3/tk.tcl" line 308)
invoked from within
"source /usr/local/share/tk8.3/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel \#0 "
This probably means that tk wasn't installed properly. 网上找了一下好象要加一个补丁,补丁代码都找到了,但就是不知道这补丁如何打
补丁代码
tk runtime error:
tk8.3/tk.tcl: no event type or button # or keysym
http://bugs.gentoo.org/show_bug.cgi?id=225999
--- ./tk/generic/tk.h.orig 2008-02-06 16:31:40.000000000 +0100
+++ ./tk/generic/tk.h 2008-07-24 08:21:46.000000000 +0200
@@ -635,17 +635,15 @@
*
*---------------------------------------------------------------------------
*/
-#define VirtualEvent (LASTEvent)
-#define ActivateNotify (LASTEvent + 1)
-#define DeactivateNotify (LASTEvent + 2)
-#define MouseWheelEvent (LASTEvent + 3)
-#define TK_LASTEVENT (LASTEvent + 4)
+#define VirtualEvent (MappingNotify + 1)
+#define ActivateNotify (MappingNotify + 2)
+#define DeactivateNotify (MappingNotify + 3)
+#define MouseWheelEvent (MappingNotify + 4)
+#define TK_LASTEVENT (MappingNotify + 5)
#define MouseWheelMask (1L << 28)
-
#define ActivateMask (1L << 29)
#define VirtualEventMask (1L << 30)
-#define TK_LASTEVENT (LASTEvent + 4)
/* cd 到 tk 的源码目录
patch -p0 -i tk-8.4-lastevent.patch
tcl/tk broken if built with x11-proto/xproto-7.0.13
需要系统的 tk 包更新了。。
谢谢 ljoolj 啦~ 谢谢啦,
试一下先 出来啦
亲每一个人:lol: 楼主,你的问题解决了吗?我在Fedora 11下安装时也是这个问题,打了patch后,重新make install也不行,不知道是什么问题。 我的对了,
到
http://bugs.gentoo.org/show_bug.cgi?id=225999
找到 tk-8.4-lastevent.patch 补丁
cd 到 tk 的源码目录,运行这个
patch -p0 -i tk-8.4-lastevent.patch
就对了 顶上去~
magic 的包里有这个补丁么??
页:
[1]