All internet tutorials about mod_archive in Ejabberd are incomplete or very caotics. Or maybe are old. So my problem is I am using Ubuntu 12.04 server LTS with Mysql. And I did all the things that are explained in all blogs.
So to install mod_archive I need to do this:
The typical:
svn co https://svn.process-one.net/ejabberd-modules
cd ejabberd-modules/mod_archive/trunk
./build.sh
cp ebin/*modules in EJABBERD
and configure /etc/ejabberd.cfg
but with this methods EJABBERD does not work.
So I discover that we need to compile other MODULE that are not explained in any site. The module is called CONN_MYSQL
cd ejabberd-modules/mysql/trunk
./build.sh
cp ebin/*modules in EJABBERD
And work.....
I need a lot of hours to discover this.
I can not use this line configuration in ejabberd.cfg: {odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"} because aplication crashes and says this:
发布评论
评论(2)
所有关于 Ejabberd 中 mod_archive 的互联网教程都不完整或非常混乱。或者也许已经老了。所以我的问题是我正在使用 Ubuntu 12.04 服务器 LTS 和 Mysql。我做了所有博客中解释的所有事情。
因此,要安装 mod_archive,我需要执行以下操作:
典型:
并配置
/etc/ejabberd.cfg
但使用此方法 EJABBERD 不起作用。
所以我发现我们需要编译任何网站中都没有解释的其他模块。该模块名为 CONN_MYSQL
,我们可以在下载的相同 ejabber-modules 中获取该模块。所以在 SVN 中(https://svn.process-one.net/ejabberd-modules )还有
工作......
我需要很多时间来发现这一点。
我无法在 ejabberd.cfg 中使用此行配置:
{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}
因为应用程序崩溃并表示:所以我在 ejabberd 中使用此行.cfg:
{odbc_server,{mysql,“服务器”,“数据库”,“用户名”,“密码”}}。
并将这一行放入模块配置中:
现在可以了!
我不记得我是否
在 Emakefile 中使用
trunk
或branches/ejabberd-2.0.x
。您可以尝试其中一种,如果不起作用,您可以尝试另一种。啊!并记住使用以下命令进行编译
您可以将其放入
也许需要此软件包:
All internet tutorials about mod_archive in Ejabberd are incomplete or very caotics. Or maybe are old. So my problem is I am using Ubuntu 12.04 server LTS with Mysql. And I did all the things that are explained in all blogs.
So to install mod_archive I need to do this:
The typical:
and configure
/etc/ejabberd.cfg
but with this methods EJABBERD does not work.
So I discover that we need to compile other MODULE that are not explained in any site. The module is called CONN_MYSQL
And we can get in the same ejabber-modules dowloaded. So in SVN (https://svn.process-one.net/ejabberd-modules) there are
And work.....
I need a lot of hours to discover this.
I can not use this line configuration in ejabberd.cfg:
{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}
because aplication crashes and says this:So I use this line in ejabberd.cfg:
{odbc_server, {mysql, "server", "database", "username", "password"}}.
and this line into the modules configuration:
So now works!
I don't remmember if i use
trunk
orbranches/ejabberd-2.0.x
in Emakefile . You could try one and if not works you could try the other.Ah! and remmember to compile with
You can get this in
maybe it is necessary this packages:
我使用这个没有任何错误: http://www.ndl.kiev.ua/content /mod_archive_odbc-release
I used this one without any errors: http://www.ndl.kiev.ua/content/mod_archive_odbc-release