systools:make_script always returns error "syntax error before:" [chapter 12]

157 views
Skip to first unread message

qiu

unread,
Oct 25, 2010, 10:45:32 AM10/25/10
to Erlang Programming
Hi all,

I tried to generate the boot file with systools:make_script, accoding
the example in "Erlang programming", chapter 12:

systools:make_script("usr", [local]). But I always hit the error
"syntax error before:".

I already changed my usr.rel to use the correct erlang runtime version
in my system. But I still hit this error.

Can anyone let know how to fix it ?

Thanks!

Qiulang

Andrey

unread,
Oct 26, 2010, 12:03:58 AM10/26/10
to Erlang Programming
Hi Qiulang, can you please provide your .rel file?

qiu

unread,
Oct 26, 2010, 11:49:11 PM10/26/10
to Erlang Programming
Hi Andrey,

I figure out this was a silly mistake :$. So the usr.rel file
downloaded from the book website missing the "." at the end:

{release, {"Mobile User Database","R1"}, {erts, "5.7.4"},
[{kernel,"2.13.4"},{stdlib,"1.16.4"},{usr,"1.0"}]}

Sorry.

Andrey

unread,
Oct 27, 2010, 10:40:48 PM10/27/10
to Erlang Programming
Glad the problem is solved.

Nikitha

unread,
Sep 5, 2013, 8:45:38 AM9/5/13
to erlang-prog...@googlegroups.com
Hi andrey,

I have my cross libraries in /home/mpc-release;
Rel.rel
---------------------------------------------------------------------------
{release,
     {"MPC_8308_rel", "1.0"},
     {erts, "5.10.1"},
         [{kernel,"2.16.1"},
          {stdlib ,"1.19.1"},
          {sasl,"2.3.1"},
      {myapp,"1"}]
}.
___________________________________________

when i try  systools:make_script("Rel","/home/myprj.../ebin").
output:
myapp: File not found: "myapp.app"
sasl: No valid version ("2.3.1").app file found,  Found file "/usr/local/lib/erlang/lib/sasl-2.3.2/ebin/sasl.app" with version "2.3.2"
stdlib: No valid version ("1.19.1").app file found.Found file "/usr/local/lib/erlang/lib/stdlib-1.19.2/ebin/stdlib.app" with version "1.19.2"
kernel: No valid version ("2.16.1") of .app file found.Found file "/usr/local/lib/erlang/lib/kernel-2.16.2/ebin/kernel.app" with version "2.16.2"

Is it mandatory to have cross libraries in /usr/local... ?

I also tried specifying path in my Rel.rel
---------------------------------------------------------------------------
{release,
     {"MPC_8308_rel", "1.0"},
     {erts, "5.10.1",  "$home/mpc-releasee/erts-5.10.1"},
         [{kernel,"2.16.1","$/home/mpc-release/lib/kernel-2.16.1"},
          {stdlib ,"1.19.1","$/home/utlemb3/mpc8308-release/lib/stdlib-1.19.1"},
          {sasl,"2.3.1", "$/home/utlemb3/mpc8308-release/lib/sasl-2.3.1"},
      {myapp,"1"}]
}.
___________________________________________

output:
Syntax error in the release file
error



On Thursday, October 28, 2010 8:10:48 AM UTC+5:30, Andrey Paramonov wrote:
Glad the problem is solved.
Reply all
Reply to author
Forward
0 new messages