Fedora Linux 下安装 source navigator 的 bug shoot!
安装后
运行snavigator
出现
Can't find a usable tk.tcl in the following directories:
/opt/sourcenav/share/tk8.3
/opt/sourcenav/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 "/opt/sourcenav/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 "/opt/sourcenav/share/tk8.3/tk.tcl" line 308)
invoked from within
"source /opt/sourcenav/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.
解决方法
comment out lines 182-184 in the file /opt/sourcenav/share/tk8.3/listbox.tcl
comment out lines 457-459 in the file /opt/sourcenav/share/tk8.3/text.tcl
ps:
这个软件太爽了~用来看ns源码真实太方便了,太方便了 哈哈
这个软件让我第一次真正感觉到Linux的强大~(因为windows下这种软件是付费的..)
相关文档:
转自http://hi.baidu.com/jiyeqian/blog/item/f46d26a2ff3f7da6caefd0d6.html
Qt:qt-everywhere-opensource-src-4.6.0.tar.gz
嵌入式平台:2440
arm-linux-gcc:4.1.2,下载(我用4.3.2和4.4.1版本时,移植时都有段错误。我把它放在:/usr/local/arm/4.1.2/ 。)
将 qt-everywhere-opensource-src-4.6.0.tar.g ......
linux下的软件RAID支持RAID级别0,1,4,5,6,今天特别测试一下RAID6。
步骤一:准备分区
分区情况如下,具体如何分区就不介绍了。
/dev/hdb5 5240 5252 1043 ......
首先,配置RedBoot的IP及其tftp服务器IP,装好tftp服务器,需要下载的内核及内存镜象应放在服务器的/tftpboot目录下
配置RedBoot的指令是
> fconfig
注意:启动的延时不要设为0,否则以后就很难再更改系统了
然后要执行flash存储器的初始化工作:
> fis init
之后,将kernel与ramdisk.gz通过tftp下载至内存并写 ......
Linux文件I/O主要由read、write、open、close、lseek五个函数组成;
一、文件描述符
在嵌入式Linux中每打开一个文件都有一个描述符与之对应,该描述符是一个非负整数;
当用open打开或新建一个文件时,该函数的返回值就是该文件的描述符;
......