class="21830">
大家現在煩惱怎樣同時運行最新的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
呵呵,兩種方法自己選擇。
我只不過提供思路,安裝過程有問題大家討論。