Getting Started: tut.erl : exiting with an error?!?

Mats Cronqvist mats.cronqvist@REDACTED
Fri Jan 14 10:09:09 CET 2005


     charles,

   the error message means that the emulator can't find the compiler.
{undef,[{M,F,A},...]} means that the function M:F with length(A) 
arguments doesn't exist, which in this case emans that the file 
compile.beam is not present in the load path. you can see the load path 
by doing code:get_path().
   i do have some useful advice too :>
   i got a very similar error when i installed both the erlang and the 
erlang-doc-html package. uninstalling the erlang-doc-html package should 
fix the crash (it did for me anyways).
   i believe this is caused by the current packages having different 
versions (the erlang package is R9 and the erlang-doc package is R10).

  say the comiler is here;
lib/compiler-4.2.3/ebin/compile.beam

   and the doc is here;
lib/compiler-4.3/doc/html/

   the install script will look for
lib/compiler-4.3/ebin/*.beam

   which doesn't exist.

   i'm cc:ing this to the debian maintainer, maybe he can withdraw the 
R10 erlang-doc-html package.

   mats

Charles Hixson wrote:
> Please help.  Something's quite wrong.  Here's the program:
> -module(tut).
> -export([double/1]).
> 
> double(X) ->
>     2 * X.
> 
> And here's the result of running it:
> :~/projects/erlang$ erl
> Erlang (BEAM) emulator version 5.3.6.3 [source] [hipe] [threads:0]
> 
> Eshell V5.3.6.3  (abort with ^G)
> 1> c(tut).
> ** exited: {undef,[{compile,file,[tut,[report_errors,report_warnings]]},
>                    {c,c,2},
>                    {erl_eval,do_apply,5},
>                    {shell,eval_loop,2}]} **
> 2>
> 
> I'm so much of a beginner that I can't guess what is happening...but I 
> think it's my system rather than the program.  I have erlang installed 
> from the Debian archives... so that should be a pretty good version.  
> Still, I can't think of how to fix things.
> 
> P.S.:  Missing from the getting started tutorial is how to properly quit
> 
> the shell.  (I eventually found that the answer was halt(). , but it 
> wasn't something I was able to guess.)
> 



More information about the erlang-questions mailing list