经过两天的努力,终于把jabberd2编译安装通过了,当运行jabberd时,出现c2s died错误,郁闷。
于是单独运行#./c2s -D,出现以下调试信息:
[notice] modules search path: /usr/local/lib/jabberd
[info] loading 'mysql' authreg module
[error] failed loading authreg module 'mysql' (libmysqlclient.so.18: cannot open shared object file: No such file or directory)
看样子是在/usr/local/lib/jabberd目录下没有找到libmysqlclient.so.18,于是我们建个软链接:
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/local/lib/jabberd/libmysqlclient.so.18
然后运行,还是同样问题。
继续解决,查看/usr/lib目录下,也是没有libmysqlclient.so.18,猜测是此处问题,于是再次建立软链接:
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib/libmysqlclient.so.18
ldconfig
运行,通过。
调试信息为:
[info] loading 'mysql' authreg module
authreg.c:74 preloaded module 'mysql' (not initialized yet)
...
[notice] initialized auth module 'mysql'