amsn这一款在linux下的Msn就不多介绍了,0.95版出来后加入了摄像头,在加上其文件传输功能,你还留恋于gaim么?
安装amsn的必要条件:
1.gcc之类编译工具必不可少,涉及相应类库,如果你在编译时出错,烦请自己上网搜相应的包安装.
2.tcl8.5a3-src.tar.gz
3.tk8.5a3-src.tar.gz 以上两个包都可以在tcl/tk的官方网站下载得到
4.amsn-0.95.tar.gz 这里需要说明一下,amsn.sourceforge.net上有很多amsn的版本诸如bin,rpm等,甚至有专为Fedora的rpm包,不过鄙人不推荐使用那些,在列表里选取“other”,下载amsn-0.95.tar.gz。
5. tk-cvs-xim-fixes.diff 下载地址http://jserv.sayya.org/tcl-i18n/tk-cvs-xim-fixes.diff
当获取这些文件后,我们将之放在/home目录下
为了造成不必要的困扰,先删除系统中自带的tcl和tk
CODE:
[root@localhost ~]#rpm -qa|grep tcl
tcl8.4*****
[root@localhost ~]#rpm -e tcl
[root@localhost ~]#rpm -qa|grep tk
tk8.4*****
[root@localhost ~]#rpm -e tk
如果卸载tcl发现有其他安装包依赖于tcl,如果那些包不重要,就先删那些包,当然你也可以rpm -e --nodeps tcl卸载。tcl8.4*****
[root@localhost ~]#rpm -e tcl
[root@localhost ~]#rpm -qa|grep tk
tk8.4*****
[root@localhost ~]#rpm -e tk
CODE:
[root@localhost home]# tar xvzf tcl8.5a3-src.tar.gz
[root@localhost home]# tar xvzf tk8.5a3-src.tar.gz
在安装它们之前需要先进行diff打patch,命令很简单:patch -p0 < tk-cvs-xim-fixes.diff [root@localhost home]# tar xvzf tk8.5a3-src.tar.gz
不过为大家解析一下jserv大大的这个patch文件内容,这样理解起来大家更容易些,中文输入都是我说的话(针对Linux菜鸟,汗!其实偶也是菜鸟)
CODE:
Index: generic/tkEvent.c
===================================================================
RCS file: /home/tk8.5a3/generic/tkEvent.c,v //遭修改的文件 tkEvent.c
retrieving revision 1.31
diff -u -p -r1.31 tkEvent.c
--- generic/tkEvent.c 4 Nov 2005 11:52:50 -0000 1.31
+++ generic/tkEvent.c 4 Jan 2006 06:31:19 -0000
@@ -449,8 +449,10 @@ InvokeInputMethods( //大概在449行左右的位置,在InvokeInputMethods方法里
XSetICFocus(winPtr->inputContext);
}
}
- if (XFilterEvent(eventPtr, None)) { // 删
- return 1; //删
+ if (eventPtr->type == KeyPress || eventPtr->type == KeyRelease) { //增加的内容
+ if (XFilterEvent(eventPtr, None)) { //增加
+ return 1; //增加
+ } //增加
}
}
return 0;
Index: unix/tkUnixEvent.c
===================================================================
RCS file: /home/tk8.5a3/unix/tkUnixEvent.c,v
retrieving revision 1.19
diff -u -p -r1.19 tkUnixEvent.c
--- unix/tkUnixEvent.c 7 Dec 2005 17:32:52 -0000 1.19
+++ unix/tkUnixEvent.c 4 Jan 2006 06:31:20 -0000
@@ -334,19 +334,22 @@ static void
TransferXEventsToTcl(
Display *display)
{
- int numFound;
XEvent event;
- numFound = QLength(display);
-
/*
- * Transfer events from the X event queue to the Tk event queue.
+ * Transfer events from the X event queue to the Tk event queue
+ * after XIM event filtering. KeyPress and KeyRelease events
+ * are filtered in Tk_HandleEvent instead of here, so that Tk's
+ * focus management code can redirect them.
*/
-
- while (numFound > 0) {
+ while (QLength(display) > 0) {
XNextEvent(display, &event);
+ if (event.type != KeyPress && event.type != KeyRelease) {
+ if (XFilterEvent(&event, None)) {
+ continue;
+ }
+ }
Tk_QueueWindowEvent(&event, TCL_QUEUE_TAIL);
- numFound--;
}
}
下面安装这些软件:===================================================================
RCS file: /home/tk8.5a3/generic/tkEvent.c,v //遭修改的文件 tkEvent.c
retrieving revision 1.31
diff -u -p -r1.31 tkEvent.c
--- generic/tkEvent.c 4 Nov 2005 11:52:50 -0000 1.31
+++ generic/tkEvent.c 4 Jan 2006 06:31:19 -0000
@@ -449,8 +449,10 @@ InvokeInputMethods( //大概在449行左右的位置,在InvokeInputMethods方法里
XSetICFocus(winPtr->inputContext);
}
}
- if (XFilterEvent(eventPtr, None)) { // 删
- return 1; //删
+ if (eventPtr->type == KeyPress || eventPtr->type == KeyRelease) { //增加的内容
+ if (XFilterEvent(eventPtr, None)) { //增加
+ return 1; //增加
+ } //增加
}
}
return 0;
Index: unix/tkUnixEvent.c
===================================================================
RCS file: /home/tk8.5a3/unix/tkUnixEvent.c,v
retrieving revision 1.19
diff -u -p -r1.19 tkUnixEvent.c
--- unix/tkUnixEvent.c 7 Dec 2005 17:32:52 -0000 1.19
+++ unix/tkUnixEvent.c 4 Jan 2006 06:31:20 -0000
@@ -334,19 +334,22 @@ static void
TransferXEventsToTcl(
Display *display)
{
- int numFound;
XEvent event;
- numFound = QLength(display);
-
/*
- * Transfer events from the X event queue to the Tk event queue.
+ * Transfer events from the X event queue to the Tk event queue
+ * after XIM event filtering. KeyPress and KeyRelease events
+ * are filtered in Tk_HandleEvent instead of here, so that Tk's
+ * focus management code can redirect them.
*/
-
- while (numFound > 0) {
+ while (QLength(display) > 0) {
XNextEvent(display, &event);
+ if (event.type != KeyPress && event.type != KeyRelease) {
+ if (XFilterEvent(&event, None)) {
+ continue;
+ }
+ }
Tk_QueueWindowEvent(&event, TCL_QUEUE_TAIL);
- numFound--;
}
}
CODE:
[root@localhost home]# cd tcl8.5a3
[root@localhost home]# cd unix
[root@localhost home]# ./configure --prefix=/usr \
--enable-gcc \
--disable-threads \
--disable-shared
[root@localhost home]# make clean
[root@localhost home]# make
[root@localhost home]# make install
[root@localhost home]# cd unix
[root@localhost home]# ./configure --prefix=/usr \
--enable-gcc \
--disable-threads \
--disable-shared
[root@localhost home]# make clean
[root@localhost home]# make
[root@localhost home]# make install
CODE:
[root@localhost home]# cd tk8.5a3
[root@localhost home]# cd unix
[root@localhost home]# ./configure --prefix=/usr \
--enable-gcc \
--disable-threads \
--disable-shared \
--enable-xft \
--disable-symbols
[root@localhost home]# make clean
[root@localhost home]# make
[root@localhost home]# make install
非常关键的两个link!!![root@localhost home]# cd unix
[root@localhost home]# ./configure --prefix=/usr \
--enable-gcc \
--disable-threads \
--disable-shared \
--enable-xft \
--disable-symbols
[root@localhost home]# make clean
[root@localhost home]# make
[root@localhost home]# make install
CODE:
[root@localhost home]#ln -s /usr/bin/wish8.5 /usr/bin/wish
[root@localhost home]#ln -s /usr/bin/tclsh8.5 /usr/bin/tclsh
最后解压amsn-0.95.tar.gz[root@localhost home]#ln -s /usr/bin/tclsh8.5 /usr/bin/tclsh
CODE:
[root@localhost home]# tar xvzf amsn-0.95.tar.gz
[root@localhost home]# cd amsn -0.95
[root@localhost home]# ./configure --with-tcl=/usr/lib && make clean && make
最后运行amsn ,大功告成![root@localhost home]# cd amsn -0.95
[root@localhost home]# ./configure --with-tcl=/usr/lib && make clean && make
CODE:
[root@localhost home]# ./amsn
通告:http://www.qqread.com/linux/2006/08/y368194061.html 相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- Linux集群技术 (8375篇文章)
- 体验Linux的音影世界 (8047篇文章)
- Linux驱动大全 (8847篇文章)
- Linux下的路由的配置与应用 (11847篇文章)
- Linux命令简介 (9900篇文章)
- Linux防火墙 (9727篇文章)
- Linux日志专题 (8501篇文章)
- Linux服务器的安全性能 (20483篇文章)
- 揭秘Linux内存管理 (8111篇文章)
- 解析Linux文件系统 (8313篇文章)
- 实用技巧:配置Linux操作系统环境变量 (30次浏览)
- 安装qmail全套功略 (18次浏览)
- TurboLinux 入门教程:第七课 TurboLinux简介 (18次浏览)
- Linux系统管理员秘技:用快捷命令一招制胜 (18次浏览)
- Linux系统命令分类详解 (1) (18次浏览)
- Linux下使用aMsn详解 (18次浏览)
- 你会在Linux下用POP3收Web电子邮箱吗? (18次浏览)
- 在Linux中用三款工具轻松制作网页 (18次浏览)
- Linux上的偷窺裝置 (1394的使用) (18次浏览)
- 深入浅出分析Linux内核漏洞的问题 (18次浏览)



