Why can't run escript?

Fittings

located in the current directory.

$ls -l rebar
--rwxr-xr-x  1 ***  wheel  90778  8  6 23:05 rebar*
$./rebar
escript: no such file or directory: './rebar'

$whereis escript
escript: /usr/local/bin/escript

I am using FreeBSD 9.0.

thank!

+5
source share
1 answer

You should change at the beginning of the reinforcing file :

#!/usr/bin/env escript

at

#!/usr/local/bin/env escript

or simply:

#!/usr/local/bin/escript
+3
source

All Articles