免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2564 | 回复: 1
打印 上一主题 下一主题

有谁在RHEL4上成功的安装过Jabber1.4+msn-transport [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-02 10:02 |只看该作者 |倒序浏览
大家好,平时都不发帖子,但是我在这个论坛上已经潜伏了很长时间了,每天都光顾这个网站的首页,给网站带来了很多流量。

最近公司要求我配置Jabber服务器,且要求能与MSN进行通讯。我首先使用的是Jabber1.4的版本,使用源代码编译安装的,安装Jabberd没有问题,使用Gaim客户端也能访问,但是安装msn-transport是老是提示编译不通过。我把自己做的安装备忘给大家看看:


1.首先安装pth-2.0.6.tar.gz,安装步骤如下:
(1)复制pth-2.0.6.tar.gz到Linux的/root目录
(2)gunzip pth-2.0.6.tar.gz
(3)tar xvf pth-2.0.6.tar
(4)cd pth-2.0.6
(5)chmod +x configure
(6)./configure
(7)make
(make install

安装完毕后,控制台显示:
Libraries have been installed in:  /usr/local/lib

(9)为了能加载库文件,编辑/etc/profile文件,在文件的最后一行增加如下语句:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
LD_RUN_PATH=$LD_RUN_PATH:/usr/local/lib
export LD_LIBRARY_PATH LD_RUN_PATH

重新启动服务器,让库加载路径生效。

2.安装libidn-0.6.1,步骤如下:
(1)复制libidn-0.6.1到/root
(1)chmod +x configure
(2)./configure
(3)make
(4)make install

3.安装jabberd,步骤如下:

(1)复制jabberd-1.4.4文件夹到Linux的/root目录
(2)chmod +x configure
(3)./configure
(4)make
(5)make install

4.Jabber服务器的配置:

编辑/usr/local/etc/jabber.xml

把如下文字替换成公网上的域名:

<host><jabberd:cmdline flag="h">localhost</jabberd:cmdline></host>

例如是www.localhost.com

5.启动jabberd服务器:

cd /usr/local/bin
jabberd

如果能看到如下启动信息,则说明启动成功:

20070321T10:08:08: [notice] (-internal): initializing server

6.安装jabber客户端:

gaim-2.0.0beta6.exe

双击运行安装文件即可。

7.配置jabber客户端:

(1)运行gaim客户端软件
(2)调出账户管理界面,比如可以点击"账户"菜单->选择"增加编辑"->点击"增加"按钮->,在这个界面中点击"注册"按钮,系统显示注册确认对话框,输入密码,点击"注册"按钮。
(3)使用相同的方法在另外的计算机上运行gaim软件并且注册另外一个账户,给账户增加联系人,这样就可以相互发送消息了。

====================================================================

8.安装msn-transport。msn-transport我是从ChinaUnix下载的,先解压,然后执行如下命令:
./configure --with-jabberd=/home/jboss/Jabber/jabberd-1.4.4/jabberd && make

我的jabberd1.4的.h文件在/home/jboss/Jabber/jabberd-1.4.4/jabberd 目录下面。

结果发现了如下的错误:
l/include -I/home/jboss/Jabber/jabberd-1.4.4/jabberd -I/usr/include -fPIC -shared    -Wall -g -O2 -Wno-unused -c `test -f 'init.c' || echo './'`init.c
In file included from init.c:25:
../include/session.h:55: syntax error before "ppdb"
../include/session.h:55: warning: no semicolon at end of struct or union
../include/session.h:65: syntax error before '}' token
../include/session.h:65: warning: type defaults to `int' in declaration of `session'
../include/session.h:65: warning: type defaults to `int' in declaration of `_session'
../include/session.h:65: warning: data definition has no type or storage class
../include/session.h:70: syntax error before "mt_session_create"
../include/session.h:70: warning: type defaults to `int' in declaration of `mt_session_create'
../include/session.h:70: warning: data definition has no type or storage class
../include/session.h:71: syntax error before "mt_session_find"
../include/session.h:71: warning: type defaults to `int' in declaration of `mt_session_find'
../include/session.h:71: warning: data definition has no type or storage class
../include/session.h:73: syntax error before "s"
../include/session.h:74: syntax error before "s"
../include/session.h:75: syntax error before "s"
../include/session.h:76: syntax error before "s"
../include/session.h:78: syntax error before "s"
../include/session.h:79: syntax error before "s"
../include/session.h:80: syntax error before "s"
../include/session.h:82: syntax error before "s"
../include/session.h:83: syntax error before "s"
../include/session.h:87: syntax error before "jpacket"
../include/session.h:90: syntax error before "s"
../include/session.h:91: syntax error before "s"
../include/session.h:92: syntax error before "s"
../include/session.h:93: syntax error before "s"
../include/session.h:95: syntax error before "s"
../include/session.h:96: syntax error before "s"
../include/session.h:97: syntax error before "s"
../include/session.h:98: syntax error before "s"
../include/session.h:99: syntax error before "s"
../include/session.h:100: syntax error before "s"
../include/session.h:101: syntax error before "s"
../include/session.h:103: syntax error before "s"
In file included from init.c:26:
../include/sb.h:43: syntax error before "session"
../include/sb.h:43: warning: no semicolon at end of struct or union
../include/sb.h:54: syntax error before '}' token
../include/sb.h:54: warning: type defaults to `int' in declaration of `sbroom'
../include/sb.h:54: warning: type defaults to `int' in declaration of `_sbroom'
../include/sb.h:54: warning: data definition has no type or storage class
../include/sb.h:65: syntax error before "session"
../include/sb.h:65: warning: no semicolon at end of struct or union
../include/sb.h:75: conflicting types for `users'
../include/session.h:58: previous declaration of `users'
../include/sb.h:76: syntax error before '}' token
../include/sb.h:76: warning: type defaults to `int' in declaration of `sbchat'
../include/sb.h:76: warning: type defaults to `int' in declaration of `_sbchat'
../include/sb.h:76: warning: data definition has no type or storage class
../include/sb.h:78: syntax error before "s"
../include/sb.h:79: syntax error before "s"
../include/sb.h:80: syntax error before "s"
../include/sb.h:81: syntax error before "sc"
../include/sb.h:82: syntax error before "sc"
../include/sb.h:83: syntax error before "sc"
../include/sb.h:86: syntax error before "s"
../include/sb.h:87: syntax error before "mt_con_create"
../include/sb.h:87: syntax error before "s"
../include/sb.h:87: warning: type defaults to `int' in declaration of `mt_con_create'
../include/sb.h:87: warning: data definition has no type or storage class
../include/sb.h:88: syntax error before "s"
../include/sb.h:89: syntax error before "r"
../include/sb.h:90: syntax error before "r"
../include/sb.h:91: syntax error before "r"
../include/sb.h:92: syntax error before "sc"
init.c: In function `_mt_debug':
init.c:168: syntax error before "s"
init.c:170: `s' undeclared (first use in this function)
init.c:170: (Each undeclared identifier is reported only once
init.c:170: for each function it appears in.)
init.c: In function `mt_shutdown_sessions':
init.c:185: syntax error before "s"
init.c:186: `s' undeclared (first use in this function)
make[1]: *** [init.o] Error 1
make[1]: Leaving directory `/root/msn-transport-1.3.0/msn-transport-1.3.0/src'
make: *** [all-recursive] Error 1


大家有人成功地安装过Jabber服务器么,Jabber2的服务器现在支持msn了没有?

论坛徽章:
0
2 [报告]
发表于 2008-03-29 23:37 |只看该作者
啊?一年了没有一个人回帖?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP