下载:
#wget
进入下载后的目录进行解压:
#tar xvzf sourcenav-6.0.tar.gz -C /opt/
进入解压后的目录进行配置:
#sudo ./configure
进入解压后的目录进行安装:
#sudo make install
运行:
#sourcenav
提示:
- 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 {
-
%W yview scroll [expr {- (%D / 120) * 4}] units
-
}"
-
(file "/usr/local/share/tk8.3/listbox.tcl" line 182)
-
invoked from within
-
"source [file join $tk_library listbox.tcl]"
-
invoked from within
-
"if {[string compare $tcl_platform(platform) "macintosh"] && \
-
[string compare {} $tk_library]} {
-
source [file join $tk_library button.tcl]
-
so..."
-
(file "/usr/local/share/tk8.3/tk.tcl" line 30
-
invoked from within
-
"source /usr/local/share/tk8.3/tk.tcl"
-
("uplevel" body line 1)
-
invoked from within
-
"uplevel \#0 [list source $file]"
-
-
-
This probably means that tk wasn't installed properly.
解决方法:来自
http://www.cnblogs.com/ayiah/archive/2010/11/03/1868447.html
注释掉 lines 182-184 in the file /usr/local/share/tk8.3/listbox.tcl
注释掉 lines 457-459 in the file /usr/local/share/tk8.3/text.tcl
再次运行:
#sourcenav
新建工程:
打开工程:
阅读(989) | 评论(0) | 转发(0) |