在Linux下成功运行最新的QQ和MSN
大家现在烦恼怎样同时运行最新的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
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
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
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
安装后的设置。
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