[erlang-questions] Help: compiler error

10 views
Skip to first unread message

raocheng

unread,
Sep 28, 2007, 9:32:32 PM9/28/07
to erlang-q...@erlang.org
When I compile a erl file, it failed: Please see the following steps:
$uname -a
SunOS tesst01 5.9 Generic_327231-29 sun4u sparc SUNW,Sun-Fire-V440 Solaris
 
$ pwd
/home/test

$ more hello.erl
-module(hello).
-export([start/0]).

start() ->
    io:format("Hello world~n").

$ ls -lrtF hello.erl
-rwxrwxrwx    1 crao     msc            80 Sep 29 09:09 hello.erl*

$ erl
Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [hipe] [kernel-poll:false]

$ erlc hello.erl
Compiler function compile:compile/3 failed:
{undef,[{compile,compile,
                 ["/home/test/hello",
                  "/home/test/hello",
                  {options,[],
                           "/home/test",
                           undefined,
                           [],
                           1,
                           false,
                           999,
                           [],
                           [],
                           "/home/test"}]},
        {erl_compile,compile_file,4},
        {erl_compile,compile3,3},
        {erl_compile,compiler_runner,1}]}
$
 
Thanks for any help.

Claes Wikstrom

unread,
Sep 29, 2007, 9:05:47 AM9/29/07
to raocheng, erlang-q...@erlang.org
raocheng wrote:
> When I compile a erl file, it failed: Please see the following steps:
> ....

>
> $ erlc hello.erl
> Compiler function compile:compile/3 failed:
> {undef,[{compile,compile,
> ["/home/test/hello",


Your erlang installation is completely broken, at least
the one which is behind your erlc in the $PATH

/klacke


_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-questions

Reply all
Reply to author
Forward
0 new messages