SAE redux (OTP R9C-0)

Mark Scandariato mscandar@REDACTED
Tue Apr 27 00:09:18 CEST 2004


I know this was discussed as recently as a month ago, but I'm stuck.

ear and escript wouldn't run - it turns out they started with:

   #!/usr/bin/env beam_evm
   ERLANG_EARS=/users/mscandar/local/src/otp_src_R9C-0/erts/boot/src

while ecc and elink started with:

   #!/bin/sh
   exec 
/users/mscandar/local/src/otp_src_R9C-0/bin/sparc-sun-solaris2.6/beam_evm 
$0 ${1+"$@"}
   ERLANG_EARS=/users/mscandar/local/src/otp_src_R9C-0/erts/boot/src

So I added 
"/users/mscandar/local/src/otp_src_R9C-0/bin/sparc-sun-solaris2.6/" to 
my PATH.

I could then escript like a madman.

But I couldn't elink:

 > ecc foo.erl
 > elink foo.beam
Cannot parse arguments:["foo.beam"]
Usage:
   elink -t [windows | unix] [-d | -s] -o out[.exe]
         -S mod -m m1.beam m2.beam m2.beam ...
 >

No combination of arguments produces any different result.

Any hints would be appreciated.

Thanks,
Mark.




More information about the erlang-questions mailing list