如何安装 Insight 调试器?

Dan*_*ker 6 installation 10.10 debugging

我正在关注一本书,其中需要 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.
Run Code Online (Sandbox Code Playgroud)

小智 1

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


Joã*_*nto 0

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