Chinaunix首页 | 论坛 | 博客
  • 博客访问: 515783
  • 博文数量: 174
  • 博客积分: 8001
  • 博客等级: 中将
  • 技术积分: 1840
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-04 19:30
文章分类

全部博文(174)

文章存档

2011年(1)

2010年(24)

2009年(149)

我的朋友

分类: LINUX

2009-05-06 12:54:58

GDB的时候,出现了错误:
Tcl_Init failed: Can't find a usable init.tcl in the following directories:
    /usr/local/share/tcl8.0 /usr/share/tcl8.0 /usr/local/share/tcl8.0
 
This probably means that Tcl wasn't installed properly.
查了一下,是TCL/TK的错误,它是图形交互界面设计的一种工具。但是GDB和它有什么关系呢?
想了一下,出现错误的虚拟机都是编译过内核和交叉工具的,是不是这个过程覆盖了什么呢?GDB应该是交叉工具的一个部分,所以可能被覆盖了。
一般的命令都是在/usr/local/bin下,在那个目录下:#gdb -v,得到
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
 
事实上,这应该是不适合的版本。在/usr/bin下的gdb是:
GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux".
这是Redhat Linux上适合的GDB。这样应该是编译交叉工具的时候,用上面版本的GDB覆盖了原来/usr/local/bin下的GDB,做一下软连接就可以了。
 
不过,注意到arm-elf-linux-gdb也是同样的提示init.tcl错误,暂时不解决这个问题。
 
 
阅读(1495) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~