new to erlyweb : can't make it work : erlyweb.beam failed: badfile

72 views
Skip to first unread message

Jean-Philippe Caruana

unread,
Jul 28, 2008, 9:54:14 AM7/28/08
to erlyweb
Hi
I try to play with erlyweb, but it seems to me that I've got some
problems (version ?)
I installed yaws on my ubuntu
I unzipped the very last erlyweb (erlyweb-0.7.2.tar.gz) release into /
usr/lib/erlang/lib

then,
sudo yaws -i # works fine : got yaws' welcome index file at localhot:
8080

1> erlyweb:create_app("blog", "/home/pouet/tmp/erlyblog/").

=ERROR REPORT==== 28-Jul-2008::15:48:30 ===
beam/beam_load.c(1301): Error loading module erlyweb:
use of opcode 136; this emulator supports only up to 129

** exited: {undef,[{erlyweb,create_app,
["blog","/home/pouet/tmp/erlyblog/"]},
{erl_eval,do_apply,5},
{shell,exprs,6},
{shell,eval_loop,3}]} **
2>
=ERROR REPORT==== 28-Jul-2008::15:48:30 ===
Loading of /usr/lib/erlang/lib/erlyweb-0.7.2/ebin/erlyweb.beam failed:
badfile

=ERROR REPORT==== 28-Jul-2008::15:48:30 ===
Error in process <0.36.0> with exit value: {undef,[{erlyweb,create_app,
["blog","/home/pouet/tmp/erlyblog/"]},{erl_eval,do_apply,5},
{shell,exprs,6},{shell,eval_loop,3}]}


could you help me getting started ?

Yariv Sadan

unread,
Jul 28, 2008, 1:36:57 PM7/28/08
to erl...@googlegroups.com
What version of erlang are you using? It looks like ErlyWeb may have
been compiled on a newer version.

Jean-Philippe Caruana

unread,
Jul 29, 2008, 3:21:42 AM7/29/08
to erl...@googlegroups.com
On Mon, Jul 28, 2008 at 7:36 PM, Yariv Sadan <yariv...@gmail.com> wrote:
>
> What version of erlang are you using? It looks like ErlyWeb may have
> been compiled on a newer version.

that what I thought.


Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0]
[kernel-poll:false]
this is the erlang version commit with the lastest ubuntu.

yaws is also from ubuntu (didn't isntalled it myself)
Yaws 1.73

I also tryed to compile erlyweb myself :
(trunk version - revision 250) :
[skip unused var warnings]
{"init terminating in
do_boot",{undef,[{erltl,compile,["src/erlyweb/erlyweb_view.et",[{outdir,"ebin"},debug_info,show_errors,show_warnings]]},{filelib,fold_files2,6},{filelib,fold_files2,6},{erl_eval,do_apply,5},{init,start_it,1},{init,start_em,1}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()


I got the same error when compiling from the 0.7 branch or from the sources.

should I provide the crash dumps ?
is something worng with my erlang install ? it seemed to work fine
until now : we are developping some telephonical components in erlang
and I had no problem.

thans for any help.

--
Jean-Philippe Caruana
http://demostene.tumblr.com/

webs7

unread,
Sep 4, 2008, 2:43:40 PM9/4/08
to erlyweb
On Jul 29, 3:21 am, "Jean-Philippe Caruana" <jp.caru...@gmail.com>
wrote:
I have the same problem.

Michael Mullis

unread,
Sep 5, 2008, 5:46:32 PM9/5/08
to erlyweb

> > Jean-Philippe Caruanahttp://demostene.tumblr.com/
>
> I have the same problem.

I just pulled a fresh copy of the source from svn and found a couple
of issues getting started.
1. The Makefile does not create ebin - this causes write errors
during compilation
2. The Emakefile points to /opt/local/lib/yaws/include which is not
the directory that yaws installed to - at least on this system which
is ubuntu.
It's in /usr/local/lib/yaws/include. The option is to change the
Emakefile which is a hassle to keep up with
or add a softlink for /opt/local/lib/yaws/include. I chose the
latter and it seems to work fine.

Hope that helps.
Michael.
Reply all
Reply to author
Forward
0 new messages