ChinaUnix首页 > 精华文章 > Linux > 正文

[原创] 在Linux下成功运行最新的QQ和MSN


http://www.chinaunix.net 作者:guangdong  发表于:2003-10-24 20:52:08
发表评论】 【查看原文】 【Linux讨论区】【关闭

大家现在烦恼怎样同时运行最新的QQ和MSN,我的思路有两个,一是QQ for gaim0.64+gaim0.71,二是QQ for gaim0.64+kmess 1.3(支持MSN6.0),那我们开始安装吧.


一、QQ for gaim0.64+gaim0.71
1、先下载gaim0.64、gaim-0.64-libqqpatched和gaim0.71
2、安装gaim 0.64
cd /root
tar xvfz gaim-0.64-libqqpatched.tar.gz
cd gaim-0.64
./configure --prefix=/usr/bin/gaim
make
make install
3、安装libqq
cd /usr/local/share/pixmaps/gaim/status/default
tar xvfz ~/gaim-0.64/libqqpatched/qqfaces.tar.gz

cd /usr/local/share/pixmaps/gaim/smileys/default/
tar xvfz ~/gaim-0.64/libqqpatched/qq_smiley.tar.gz

cp ~/gaim-0.64/libqqpatched/wry.dll ~/.gaim

rm /usr/local/lib/gaim/libqq*.so
cp ~/gaim-0.64/libqqpatched/libqq-0.0.3-xfer-0.64-gcc32.so /usr/bin/gaim
4、安装Gaim 0.71 & msn
<1>;compile nspr (http://www.mozilla.org/projects/nspr/) 
tar zxvf nspr-4.3.tar.gz 
cd nspr-4.3 
mkdir build 
mkdir inst 
cd build 
../mozilla/nsprpub/configure --prefix=~/nspr-4.3/inst 
make 
make install 
cp -rfL dist/* /usr 

<2>;compile nss (http://www.mozilla.org/projects/security/pki/nss) 
tar zxvf nss-3.8.tar.gz 
cd nss-3.8 
echo 'INCLUDES += -I/usr/include/nspr -I$(DIST)/include/dbm' \ 
>;>; mozilla/security/coreconf/headers.mk 

sed -e 's:$(DIST)/lib/$(LIB_PREFIX)plc4:/usr/lib/$(LIB_PREFIX)plc4:' -e 's:$(DIST)/lib/$(LIB_PREFIX)plds4:/usr/lib/$(LIB_PREFIX)plds4:' -i mozilla/security/nss/lib/ckfw/builtins/Makefile 

sed -e 's:$(DIST)/lib/$(LIB_PREFIX)plc4:/usr/lib/$(LIB_PREFIX)plc4:' -e 's:$(DIST)/lib/$(LIB_PREFIX)plds4:/usr/lib/$(LIB_PREFIX)plds4:' -i mozilla/security/nss/lib/fortcrypt/swfort/pkcs11/Makefile 

sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' -i mozilla/security/coreconf/source.mk 

cp mozilla/security/coreconf/Linux2.5.mk mozilla/cdsecurity/coreconf/Linux2.6.mk 

cd mozilla/security/coreconf 

make BUILD_OPT=1 

cd -; cd mozilla/security/dbm 

make BUILD_OPT=1 

cd -; cd mozilla/security/nss 

make BUILD_OPT=1 

cd -; cd mozilla/security/dist 
mkdir /usr/lib/nss 
cp -L */lib/*.a /usr/lib/nss 
cp */lib/*.so /usr/lib 
mkdir /usr/include/nss 
cp private/nss/*.h /usr/includes/nss 
cp public/nss/*.h /usr/include/nss 

<3>;compile gaim-0.71 
tar jxvf gaim-0.71.tar.bz2 
cd gaim-0.71 
./configure --prefix=/usr --with-nss-includes=/usr/include/nss --with-nspr-includes=/usr/include/nspr 
(you should see SSL/Library/Libraries.....: Mozilla NSS) 
make && make install 

<4>;安装后的设置。
a) 现在gaim0.64主程序在/usr/bin/gaim,插件目录是/usr/lib/gaim/;gaim0.71编译安装后,主程序是/usr/local/bin/gaim,插件目录是/usr/local/lib/gaim。gaim的默认安装目录在下载源码编译时是可以更改的,具体请在gaim的源码目录中用 ./configure --help 命令查看。

b) gaim默认的配置文件是用户目录下面的.gaimrc(文件名前面有个点),也可以用用户指定的其他配置文件,这是实现不同版本gaim共存的关键。以我的系统为例,具体做法是:
先运行0.64版的gaim,即/usr/bin/gaim,然后只安装libqq插件,帐号也只设置一个qq的帐号。退出后,将生成的 .gaimrc 文件改名为 .gaimrc-0.64, 即
mv .gaimrc .gaimrc-0.64

c) 再运行0.71版的gaim,即/usr/local/bin/gaim,此时可以安装其他的插件,设置其他的帐号,退出后,也将 .gaimrc改名,如:
mv .gaimrc .gaimrc-0.71

d) 运行时的命令
如果想要用0.64版的gaim,运行命令是:
/usr/bin/gaim -f $HOME/.gaimrc-0.64
同理,运行0.71版gaim的命令是:
/usr/local/bin/gaim -f $HOME/.gaimrc-0.71
可以在桌面分别建立这两个命令的快捷方式,就可以方便地使用两个版本的gaim了。

二、QQ for gaim0.64+kmess 1.3
1、载gaim0.64、gaim-0.64-libqqpatched和kmess 1.3
2、安装和运行QQ plugin 0.0.3 + Gaim 0.64 
1)Install gaim 0.64 
cd /root 
tar xvfz gaim-0.64-libqqpatched.tar.gz 
cd gaim-0.64 
./configure 
make 
make install 

2)Install libqq 
cd /usr/local/share/pixmaps/gaim/status/default 
tar xvfz ~/gaim-0.64/libqqpatched/qqfaces.tar.gz 
cd /usr/local/share/pixmaps/gaim/smileys/default/ 
tar xvfz ~/gaim-0.64/libqqpatched/qq_smiley.tar.gz 
cp ~/gaim-0.64/libqqpatched/wry.dll ~/.gaim 
rm /usr/local/lib/gaim/libqq*.so 
cp ~/gaim-0.64/libqqpatched/libqq-0.0.3-xfer-0.64-gcc32.so /usr/local/lib/gaim 

3)Run gaim 

3、安装kmess1.3
# cd /usr/lib 
# ln -s libmimelib.so.1 /usr/lib/libmimelib.so 
# ./configure --prefix=/usr
# make 
# make install


呵呵,两种方法自己选择。
我只不过提供思路,安装过程有问题大家讨论。



 最终幻想 回复于:2003-10-19 17:04:07

好复杂啊~~~我装了Gaim0.64后怎么MSN和ICQ的插件都没有了啊?
现在只能上QQ,声音没有。


 guangdong 回复于:2003-10-19 18:56:43

gaim0.71以下的msn协议给微软封了


 compadre 回复于:2003-10-19 20:41:47

这样的贴子也能算精华,搞错没有啊,坛子里很多有水平的贴子你们都不给加精,就这种贴子,不就是因为是版主自己发的吗,就能算精华吗,拷!!!!!!!


 xiaohu0 回复于:2003-10-20 08:16:19

引用:原帖由 "最终幻想" 发表:
好复杂啊~~~我装了Gaim0.64后怎么MSN和ICQ的插件都没有了啊?
现在只能上QQ,声音没有。


我得也是,如果把QQ4GAIM0.64得rpm -e后,,msn 和icq等插件恢复过来,而此时不能用qq,应是qq与msn,icq有冲突。。


 好好先生 回复于:2003-10-20 09:31:22

引用:原帖由 "compadre"]这样的贴子也能算精华,搞错没有啊,坛子里很多有水平的贴子你们都不给加精,就这种贴子,不就是因为是版主自己发的吗,就能算精华吗,拷!!!!!!!
 发表:


请注意用语文明一点.不仅仅是因为是版主的贴子就加精华,而是因为是原创,并且能解决实际问题才加为精华的.而如果是随便转载而没有经过自己实验的贴子,很少加为精华.
希望你能多写点自己的心得,多把自己的经验给别人共享.这样的贴子,我一定给你加精华.


 blueme 回复于:2003-10-20 10:47:11

cd gaim-0.64
./configure --prefix=/usr/bin/gaim 

*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLib 2.0 is required to build Gaim; please make sure you have the GLib
*** development headers installed. The latest version of GLib is
*** always available at http://www.gtk.org/.??????????????????????????????
Why?


 blueme 回复于:2003-10-21 09:27:27

help me


 blueme 回复于:2003-10-21 09:29:08

*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLib 2.0 is required to build Gaim; please make sure you have the GLib
*** development headers installed. The latest version of GLib is
*** always available at http://www.gtk.org/.
[root@blue gaim-0.64]# make
make: *** No targets specified and no makefile found.  Stop.


 vantronboy 回复于:2003-10-21 09:39:37

可是哪里有那些插件下呢?


 夏日么么茶 回复于:2003-10-21 10:03:55

为什么偶弄的QQ没有声音~~~


 wooe 回复于:2003-10-21 22:13:16

gaim0.71以下的msn协议给微软封了
---------------------
此话8对! 我用RH8自代的Gaim照样登陆,只不过MSN提示有漏洞而已。就象老版本的MSN。

另外一点不明白,为什么要同时装Gaim的两个版本?如果要说明Gaim下面如何使用QQ插件,那么你就讲.64的。你要讲.64和.71混和使用的话,那就不要讲QQ。弄得我们 :?:  :?:  :?:


 guangdong 回复于:2003-10-21 22:46:57

因为gaim0.64已经无法登陆msn了,只有gaim0.71可以,但好象这几天也不行了


 nigang1982 回复于:2003-10-22 08:14:22

我才学的感觉到好麻烦   这正常吗 
我看了头都昏了


 菜鸟@ 回复于:2003-10-24 20:52:08

在redhat9的终端安装kmess1.3的时候运行./configure --prefix=/usr                                                        系统提示说没有./configure这个目录,是怎么回事啊!!??,请老鸟们帮帮忙,谢了.




原文链接:http://linux.chinaunix.net/bbs/viewthread.php?tid=183800
转载请注明作者名及原文出处