solaris x86 下装openq

当然gcc,make等基本工具是要先装好的 。

从http://www.blastwave.org/pkg-get.php下载pkg-get.实际上就是把第一行的链接的.pkg文件下载下来 。安装(pkgadd )就可以了 。这个公司的软件全部装到/opt/csw/下的 。然后pkg-get -u 把pkg-get自身升级 。不然-i参数无效 。
如果gcc,make没的话可用pkg-get装gcc和gmake的最新版本
然后

1.使用pkg-get -i gaim;自动安装上gaim0.82 。之所以这样做 。自动安装为我省下了太多的事情 。因为我刚装的Solaris x86,甚么lib也没 。pkg-get不仅可以装上gaim0.82,同时也能装上它所有的dependences.(这个工具真是很爽〕

2.pkgrm CSWgaim; 这一步我吧gaim0.82又删掉 。因为目前支持0 。82的的openq的plugs还没有 。删掉的是为了自己编译gaim



4.如果你知道gaim的重要的dependences并且可以自己安装的话上面是没必要的


1.从http://openq.Linuxsir.org/download/openQ-0.3.0.p3.tbz下载最近的openQ的原代码
2.解压文件bunzip2 openQ*; tar xvf openQ*;

3 cd open*;cd gaim*;
export LDFLAGS=-L/opt/csw/lib;
export CPPFLAGS=-I/opt/csw/include;
将CPPFLAGS和LDFLAGS的值指到dependences的lib和include 目录 。上面写的是pkg-get得到的 dependences的目录

./configure --disable-perl
这里configure的参数意思如下:(可以通过./configure --help查〕
参数--disable-perl,不然的话编译的时候回出现一个符号冲突的错误 。

如果不加gnutls,openQ协议就无法被gaim识别 。而且加了gnutls,mns也能用了 。gnutls是很重要的 。


最后configure得输出是建议对比下 。

config.status: creating po/Makefile

gaim 0.79

Build Protocol Plugins........ : yes
Protocols to link statically.. :
Protocols to build dynamically : QQ gg irc jabber MSN napster novell oscar yahoo zephyr

UI Library.................... : GTK 2.x
SSL Library/LibrarIEs......... : GNUTLS

Build with Plugin support..... : yes
Build with Perl support....... : no
Build with Tcl support........ : no
Build with Tk support......... : no
Build with Audio support...... : yes
Build with NAS support........ : no
Build with GtkSpell support... : yes

Use kerberos 4 with zephyr.... : no
Use external libzephyr........ : no

Use XScreenSaver Extension.... : yes
Use X Session Management...... : yes
Use startup notification.......: yes

Print debugging messages...... : no

Gaim will be installed in /usr/local/bin.
Warning: You have an old copy of gaim at /usr/local/bin/gaim.

configure complete, now type ^make^
(其中有几个显示‘no"的库文件也在机子里 。只是没做必要的设置,configure暂时找不到path,因为pkg-get已经把所有的 dependences装了.然而就显示出来gtk,gnutls,pulugins support,etc被找到了,就足够运行openqq,象tcl,tck等完全可以通过configure的参数指出路径〕

4.make(或gmake)

5.make install
会出错说打不开mkinstalldirs文件 。把gaim-0.79目录里的mkinstalldirs文件cp到上级目录就可以了

7. mkdir –p $HOME/.gaim/smileys
8. cp –r qq2003iii $HOME/.gaim/smileys
* 安装QQ 秀
9. cp –r qqshow $HOME/.gaim
* 安装IP 地址文件,( 可以安装到任何目录,但一定要在”首选项”中设置)
10. cp QQWry-20040330.dat $HOME/.gaim/
恭喜装完了 。

输入/usr/local/bin/gaim &(看你装到哪里了默认是这个路径)

如果出现crash的话使用gaim -d看调试信息 。很可能是.gaim目录下的文件prefs.xml坏了 。建议手动恢复 。不过一般不会坏的 。

    推荐阅读