即时通讯软件测试方法,Linux系统环境下如何使用aMsn即时通讯

本文详细介绍了在Linux Fedora Core 3系统中如何安装和配置aMsn 0.95,包括解决中文输入问题。首先,需要下载必要的tcl和tk源码包以及amsn软件包,并应用补丁。然后,通过编译和安装步骤,替换系统自带的tcl和tk。最后,成功运行amsn实现即时通讯功能。过程中特别提到了中文输入的困难和解决方案。
摘要由CSDN通过智能技术生成

Linux系统环境下如何使用aMsn即时通讯

发表于:2007-05-26来源:作者:点击数:

标签:

[分享] Linux 下使用aMsn详解 amsn这一款在 linux 下的Msn就不多介绍了,0.95版出来后加入了摄像头,在加上其文件传输功能,你还留恋于gaim么? 经过多天的搜索和尝试,终于在Fedora Core3里用上amsn了。其实安装amsn并run起来不难(不过我基本上从不能运行

[分享]

amsn这一款在

经过多天的搜索和尝试,终于在Fedora Core3里用上amsn了。其实安装amsn并run起来不难(不过我基本上从不能运行到能运行,不能输入任何字符到能输入英文,不能输入中文到能输入中文的问题都遇到了,还遇到程序段错误等等,也够衰的了),尤其是中文输入的问题是有点麻烦,因为

安装amsn的必要条件:

1.g

2.tcl8.5a3-src.tar.gz

3.tk8.5a3-src.tar.gz 以上两个包都可以在tcl/tk的官方网站

4.amsn-0.95.tar.gz 这里需要说明一下,amsn.sourceforge

5. tk-cvs-xim-fixes.diff 下载地址http://jserv.sayya.org/tcl-i18n/tk-cvs-xim-fixes.diff (附言:感谢jserv大大对aMsn中文输入的贡献)

当获取这些文件后,我们将之放在/home目录下

为了造成不必要的困扰,先删除系统中自带的tcl和tk

[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卸载。

[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

不过为大家解析一下jserv大大的这个patch文件内容,这样理解起来大家更容易些,中文输入都是我说的话(针对Linux菜鸟,汗!其实偶也是菜鸟)

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/tk

===================================================================

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--;

}

}

下面安装这些软件:

[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 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]#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]# 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 ,大功告成!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值