ejabberd on gentoo

Hi,

I tried to install ejabberd on a gentoo machine for days... my last hope is are you guys in this forum.

Maybe I lost the overview, but I am confused.

The installation is made regarding to http://gentoo-wiki.com/Ejabberd

This is the actual state:

test jabber # start-stop-daemon --start --chuid jabber:jabber --exec /usr/bin/env HOME=/var/run/jabber /usr/bin/ejabberd
+ start-stop-daemon --start --chuid jabber:jabber --exec /usr/bin/env HOME=/var/run/jabber /usr/bin/ejabberd
Erlang (BEAM) emulator version 5.5.1 [source] [async-threads:0]

Eshell V5.5.1 (abort with ^G)
(ejabberd@test)1>
=ERROR REPORT==== 21-Jan-2007::23:09:59 ===
E(<0.41.0>:gen_mod:47): {undef,[{mod_irc,start,["domain.com",[]]},
{gen_mod,start_module,3},
{lists,foreach,2},
{ejabberd_app,start,2},
{application_master,start_it_old,4}]}

=ERROR REPORT==== 21-Jan-2007::23:09:59 ===
E(<0.41.0>:gen_mod:47): {undef,[{mod_pubsub,start,["domain.com",[]]},
{gen_mod,start_module,3},
{lists,foreach,2},
{ejabberd_app,start,2},
{application_master,start_it_old,4}]}

And now? I also cannot open any ejabberd admin-site. Can anyone give a bloody ejabberd-beginer a good hint / advise?

Thanks!!

File bugreport for ejabberd

File bugreport for ejabberd to gentoo. They disable building some modules (mod_irc, mod_pubsub etc.), but leave them in ejabberd config.

gentoo and ejabberd

teo wrote:

File bugreport for ejabberd to gentoo. They disable building some modules (mod_irc, mod_pubsub etc.), but leave them in ejabberd config.

Not editing the default config files to match your USE flags doesn't really count as a bug in the gentoo world.

Generic stable gentoo install depends on your installed packages, and your choice of KEYWORDS and USE flags, this is my default for stable x86 (in reality I use ~x86 (unstable) for erlang and ejabberd without any problems):

# emerge -pv ejabberd
[ebuild N ] dev-lang/erlang-11.2.1 USE="ssl -doc -emacs -java -odbc -tk" 10,883 kB
[ebuild N ] net-im/jabber-base-0.01 0 kB
[ebuild N ] net-im/ejabberd-1.1.1 USE="ldap ssl -mod_irc -mod_muc -mod_pubsub -odbc -web" 784 kB

You probably want your USE flags to be "ssl mod_muc web -java -odbc -tk -mod_irc -mod_pubsub" to start with, unless you plan on using database or ldap authentication 'odbc ldap', or need IRC or pubsub 'mod_irc mod_pubsub'. You can either set these in /etc/portage/package.use or with the USE environment variable.

Once installed, you *will* need to edit the /etc/ejabberd/ejabberd.cfg file. If you didn't install mod_irc, you need to comment out the configuration line for mod_irc. Same for mod_pubsub. You may also need to use /etc/ejabberd/self-cert.sh to create a certificate for SSL use and also make the needed changes in the ejabberd.cfg file.

Don't forget to read the documentation: /usr/share/doc/ejabberd-1.1.1/doc/guide.html

If the OP has further questions, join the ejabberd mailing list and ask there, or email me at (hayter at usc dot edu) with gentoo and ejabberd in the subject and I'll be glad to help you get ejabberd running on your gentoo box. :)

gentoo abd ejabberd

zengargoyle wrote:

Once installed, you *will* need to edit the /etc/ejabberd/ejabberd.cfg file. If you didn't install mod_irc, you need to comment out the configuration line for mod_irc. Same for mod_pubsub.

I would consider this a bug, because if I enable or disable something explicitly, I could expect to edit config file (though it would be natural to comment/uncomment relevant sections automatically). But default installation MUST work. I don't know about mod_irc and mod_pubsub. I get totally uninformative error messages. Ejabberd installation guide doesn't contain anything gentoo-specific. Then I'm stuck.

This should be told to Gentoo guys

This should be told to Gentoo guys. The source ejabberd default installation works:
./configure
make
make install

should work ok.
Alternatively, you can also use the Linux binary installer.

--
Mickaël Rémond
Process-one

>should work

>should work ok.
>Alternatively, you can also use the Linux binary installer

yes it work, but it's may break portage
P.S. ejabberd in gentoo need more love... :)

hrmmm, gentoo

teo wrote:
zengargoyle wrote:

Once installed, you *will* need to edit the /etc/ejabberd/ejabberd.cfg file. If you didn't install mod_irc, you need to comment out the configuration line for mod_irc. Same for mod_pubsub.

I would consider this a bug, because if I enable or disable something explicitly, I could expect to edit config file (though it would be natural to comment/uncomment relevant sections automatically). But default installation MUST work. I don't know about mod_irc and mod_pubsub. I get totally uninformative error messages. Ejabberd installation guide doesn't contain anything gentoo-specific. Then I'm stuck.

i would agree with you, but i can't. if you were using RedHat, or Debian, or Suse, then maybe i would be able to agree. i've been using Gentoo for years and years and years now, and i can't think of a single 'network/daemon/service' that i've installed that would work without editing the configuration files. except for a very few 'very important' almost necessary things like SSH, and even then, if you want to allow root login, or forwarded X sessions, then you'll have to edit the config files...

there is no such thing as a 'default installation' under Gentoo. if i have odbc installed, then ejabberd will be built with odbc support. if i have ldap installed, then it will be built with ldap support. if for some reason beyond my ken, if my system does not have ssl, then ejabberd will be built without SSL support. if a ./configure script has options that are contained within an ebuild script, the default will be for them to be disabled. the ejabberd configure provides a means for the web interface to be disabled, the ebuild supports this option, therefore the nominal state will be that the 'web' USE flag will not be selected. a Gentoo user will have to check which flags are available before building, and select those which are desired.

some things like 'ssl', 'odbc', 'ldap', 'java', 'tk', etc. are things that have a global USE flag. if i install Tk, then the 'tk' flag is set and any packages that use 'tk' will be built to support Tk (linking to the appropriate libraries as needed).

Gentoo is about options. it is not about installing the default. it is not for the general user. please, do not use Gentoo and complain that things don't work without editing config files before starting... that just isn't the Gentoo way.

this philosophy has caused problems with other packages, if you use Gentoo and have a problem with 'mplayer', or 'Gaim', please consult the Gentoo Forums first. the mplayer and Gaim developers *will not* help you once they know you are a Gentoo user.

sorry, but it's the truth. Gentoo is great for seasoned sysadmin people, users who are very familiar with building/configuring packages. but it is not a distro for the new-user. it is a distro for people who want just a tiny bit more than the "./configure;make install" people who wish to have full controll over the compiler flags, and the configure options when building packages, and have some dependency checking. that is all. as a Gentoo user, i *never* expect to start up a new service without reading documentation and editing config files. exceping some simple client programs... i can install 'vim' and expect 'vim' to let me edit a file. but i can not install 'rsync' or 'postfix', or 'distcc' or 'samba' and expect it to work without editing the config files to suit my tastes.... that's just the way Gentoo is.

until recently, there was no automated Gentoo graphical installer that is so common in other distros. and the creation of an automated installer was fought by the seasoned Gentoo users. and since the automated installer, nothing but problems from new users. you should only be using Gentoo if you know that you could build an entire system from source, including building your own kernel, and configuring your own config files. Gentoo will make some of that a little bit easier, but it *will not* make it simple and foolproof.

in summary... there is *no* default. do not expect any service to work without customization of the configuration. if you wish otherwise, use Debian or RedHat or Suse or FreeBSD (maybe).

i know this sounds harsh. Gentoo is for experienced *nix users. and the first, best place to ask questions is on the Gentoo Forums (the best generic *nix forums i've ever seen).

but if you need Gentoo help, ask me on the mailing list and i'll be glad to help.

I don't use Gentoo. But what

I don't use Gentoo. But what I see is tons of Gentoo users, which ask "Why doesn't ejabberd work?" And they have to find answer somewhere outside (there's no information in docs). If it happens with all packages, it's very bad for Gentoo (though I guess it's a local erlang and ejabberd problem since they are used by relatively few people).

i'm Gentoo user, after

i'm Gentoo user, after "emerge ejabberd" after two - three hours it perfectly worked on my server

yes, Gentoo is *evil*

honestly, Gentoo users need to learn to ask Gentoo Forums before bothering developers.... Gentoo Forums are very good, i often find answers to RedHat or Solaris problems in the Gentoo Forums (because Gentoo is really just "install from source" type of distro, and seasoned Gentoo users are very *nix wise... :) ).

please, if you get Gentoo problems, tell them to ask in Gentoo Forums. they will probably get answer quickly, advanced Gentoo users will install new software just to answer somebody's question :).

and/or make Gentoo users email me :) or ask on ejabberd mailing list. i'll try to make erlang/ejabberd easier for new Gentoo users.

Syndicate content