如何安装 Insight 调试器?

如何安装 Insight 调试器?

我正在看一本书,其中需要 Insight 调试器。但我在 Maverick 上没有找到它。我用谷歌搜索,发现 Debian 不再支持它,但我确实需要安装它。我尝试编译源代码并安装,但每次启动它时都告诉我缺少 tk。我用 sudo aptitude install tk 安装了 tk,然后尝试再次运行,结果还是一样。我又编译了一次,但什么都没有改变。那么请问我该如何安装它?

更新:这是我收到的消息

Tk_Init failed: Can't find a usable tk.tcl in the following directories: 
    /usr/local/share/tk8.4 /usr/local/lib/tk8.4 /usr/lib/tk8.4 /usr/local/library /usr/library /usr/tk8.4.1/library /tk8.4.1/library

/usr/local/share/tk8.4/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.4/listbox.tcl" line 182)
    invoked from within
"source /usr/local/share/tk8.4/listbox.tcl"
    (in namespace eval "::" script line 1)
    invoked from within
"namespace eval :: [list source [file join $::tk_library $file.tcl]]"
    (procedure "SourceLibFile" line 2)
    invoked from within
"SourceLibFile listbox"
    (in namespace eval "::tk" script line 4)
    invoked from within
"namespace eval ::tk {
 SourceLibFile button
 SourceLibFile entry
 SourceLibFile listbox
 SourceLibFile menu
 SourceLibFile panedwindow
 SourceLibFile ..."
    invoked from within
"if {$::tk_library ne ""} {
    if {[string equal $tcl_platform(platform) "macintosh"]} {
 proc ::tk::SourceLibFile {file} {
     if {[catch {
  namesp..."
    (file "/usr/local/share/tk8.4/tk.tcl" line 393)
    invoked from within
"source /usr/local/share/tk8.4/tk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $file]"


This probably means that tk wasn't installed properly.

答案1

仔细阅读该主题 http://ubuntuforums.org/showthread.php?t=1512700&page=2 然后将其添加到您的存储库。在基于 ubuntu 10.10 的 ubuntu 2.8 终极版上它起作用了!!! https://edge.launchpad.net/~sevenmachines/+archive/dev

答案2

从这里下载:https://edge.launchpad.net/~sevenmachines/+archive/dev/+packages*

*只为整洁、特立独行、清醒

答案3

Ubuntu tk 包将所需的 .tcl 文件安装到 /usr/usr/share/tcltk/tk8.4 中,检查是否存在一些配置文件,您可以在其中更改 tcltk 搜索路径。

相关内容