Hi, you can also - if you do not want to change your environment settings - try to run the escripts placed in bin/ directory (those with .erl extension) by typing:
/path/to/your/erlang/bin/escript bin/name_of_your_script.erl If your problem still occurs, please let me know. ----- "Magnus Henoch" <[email protected]> wrote: > "Ingmar Olsson" <[email protected]> writes: > > > I am running Linux/Suse SLED 10, sp2 and have erlang R12B-5 (and > > yaws)installed. When running /bin/compile.erl I get: > > > > .... > > iop...@fujitsu:/usr/local/erlang/erlangweb-1.2.1.rc1> > bin/compile.erl > > /usr/bin/env: escript: No such file or directory > > This error does not mean what it seems like. /usr/bin/env is a > program, > often used for finding programs in PATH, and it complains about not > finding escript. > > Is escript in your path? Try running it in the shell; you should get > a > "escript: missing filename" message. If you don't, try running this > before: > > PATH=/path/to/erlang/bin:$PATH > > (replace as necessary) > > Oh, and you should restore your old /usr/bin/env binary :) > > > I have also tried to change the directive > > #!/usr/bin/env escript > > in compile.erl to the original Erlang bin path for escript but I got > the > > same message. > > That I can't explain, though. > > Magnus > Best regards, -- Michal Ptaszek www.erlang-consulting.com ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Erlangweb-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/erlangweb-users http://www.erlang-web.org/
