[ejabberd] cean ejabberd

Jesse Thompson jesse.thompson at doit.wisc.edu
Wed Jul 18 17:32:49 MSD 2007


Christophe Romain wrote:
>> Hmm.  Why does the ejabberd configure script continue to look for the
>> erlang binaries in /usr/local/bin?
> 
> export PATH=<ceandir>/bin:$PATH
> then use configure

Yeah, I had soft links in /usr/local/bin.  I removed those...

First, I found a problem with the cean_base and ejabberd_std
distributions.  The soft links for erlc, run_erl and ro_erl in
/opt/cean/ejabberd_std/bin are all pointing to the wrong place.

erlc -> ../erlang/erts-5.5.5/sunos-sparc/erlc
run_erl -> ../erlang/erts-5.5.5/sunos-sparc/run_erl
to_erl -> ../erlang/erts-5.5.5/sunos-sparc/to_erl

I fixed the soft links...

erlc -> ../erlang/erts-5.5.5/sunos-sparc/bin/erlc
run_erl -> ../erlang/erts-5.5.5/sunos-sparc/bin/run_erl
to_erl -> ../erlang/erts-5.5.5/sunos-sparc/bin/to_erl


So, now I can get the ejabberd configure script to find the binaries

> ./configure --enable-odbc --with-erlang=/opt/cean/ejabberd_std
checking for gcc... /usr/sfw/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/sfw/bin/gcc accepts -g... yes
checking for /usr/sfw/bin/gcc option to accept ISO C89... none needed
checking whether /usr/sfw/bin/gmake sets $(MAKE)... yes
checking for erlc... /opt/cean/ejabberd_std/bin//erlc
checking for erl... /opt/cean/ejabberd_std/bin//erl
./start.sh: /export/home/zjt/ejabberd/ejabberd-1.1.3/src/erlang: does
not exist
./start.sh: /export/home/zjt/ejabberd/ejabberd-1.1.3/src/lib: does not exist
system sunos-sparc is not recognized
./start.sh: /export/home/zjt/ejabberd/ejabberd-1.1.3/src/erlang: does
not exist
./start.sh: /export/home/zjt/ejabberd/ejabberd-1.1.3/src/lib: does not exist
system sunos-sparc is not recognized
configure: error: erlang program was not properly executed,
(conftest.out was not produced)


Which is the same error I get when doing this:
> cd /opt/cean/ejabberd_std/bin/
> ./erl
./start.sh: /opt/cean/ejabberd_std/bin/erlang: does not exist
./start.sh: /opt/cean/ejabberd_std/bin/lib: does not exist
system sunos-sparc is not recognized


But, this works:
> cd /opt/cean/ejabberd_std
> bin/erl
Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [hipe]
[kernel-poll:false]

Eshell V5.5.5  (abort with ^G)
1>


So, now I'm thinking that something needs to be fixed in
/opt/cean/ejabberd_std/start.sh

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3304 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.jabber.ru/pipermail/ejabberd/attachments/20070718/e73babd8/attachment.bin 


More information about the ejabberd mailing list