源代码阅读工具Source-Navigator 在ubuntu 9.04下的安装与问题解决
生活随笔
收集整理的這篇文章主要介紹了
源代码阅读工具Source-Navigator 在ubuntu 9.04下的安装与问题解决
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在http://sourcenav.sourceforge.net/download.html下載最新版本6.0,安裝
sudo ./configure
sudo make install
安裝完成后運行 snavigator 提示
[root@MagicLinux sourcenav-6.0]# 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 [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.
不知其所以然,重新安裝tk8.3無效,升級到tk8.5無效
后來在網上發現需要給下載的Source-Navigator 6.0打補丁
到http://bugs.gentoo.org/show_bug.cgi?id=225999 找到 tk-8.4-lastevent.patch 補丁
將補丁粘貼到tk目錄下,cd 到 tk 的源碼目錄
patch -p0 -i tk-8.4-lastevent.patch
刪除安裝,重新安裝,可以運行了。離windows又遠了一步,自由自在的查看源代碼吧。
sudo ./configure
sudo make install
安裝完成后運行 snavigator 提示
[root@MagicLinux sourcenav-6.0]# 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 [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.
不知其所以然,重新安裝tk8.3無效,升級到tk8.5無效
后來在網上發現需要給下載的Source-Navigator 6.0打補丁
到http://bugs.gentoo.org/show_bug.cgi?id=225999 找到 tk-8.4-lastevent.patch 補丁
將補丁粘貼到tk目錄下,cd 到 tk 的源碼目錄
patch -p0 -i tk-8.4-lastevent.patch
刪除安裝,重新安裝,可以運行了。離windows又遠了一步,自由自在的查看源代碼吧。
轉載于:https://www.cnblogs.com/zyjmlz/archive/2009/09/02/1558691.html
總結
以上是生活随笔為你收集整理的源代码阅读工具Source-Navigator 在ubuntu 9.04下的安装与问题解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 存储过程同函数的区别
- 下一篇: java基础学习整理(一)