<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hmmm...<br>
<br>
As far as I remember (I'm on Linux now), I always used the Windows
installer from erlang.org.<br>
<br>
I guess you need to manually add erl to your path variable in order to
get access to it from anywhere in the system (i don't think the
installer does that). "My Computer -> Properties -> Advanced
-> Environment Variables"<br>
<br>
Once that's done, you can start erl from any directory. The compiled
beam file will then be placed in the directory where the source file is.<br>
<br>
Joe Armstrong wrote:
<blockquote
cite="mid9b08084c0703060039l77c05561u78176fe953d5b2a8@mail.gmail.com"
type="cite">
<pre wrap="">Hi Guys - help needed.
A question came up on the errata list for the Erlang book - it was
about windows use
I'll quote the question below - I'm only an occasional windows user
so I don't know the best answer to this.
Me - I use mingw and msys (I forget) - and a erl.bat file that aliases erlc
but I have no idea if this is the best way to proceed.
What is "best practice"????
Thanks
/Joe
Here are the two posts
(from <a class="moz-txt-link-freetext" href="http://books.pragprog.com/titles/jaerlang/errata">http://books.pragprog.com/titles/jaerlang/errata</a>)
#6533: There should be some description on where to put modules such
as math4.erl once it is downloaded so that c(math4). works without an
error.--Stephen Freitag
#6524: > Start your favorite text editor and enter the following
</pre>
<blockquote type="cite">
<pre wrap="">into a file called shop.erl.
</pre>
</blockquote>
<pre wrap=""><!---->
This to me is almost always the hardest entry point for anyone into a
language. Start your text editor where? From the same directory as
Cean? If you do that it doesn't compile because the Cean start script
immediately moves to the bin directory (at least under windows):
</pre>
<blockquote type="cite">
<pre wrap="">cd erlang/erts*/windows/bin
start werl.exe
</pre>
</blockquote>
<pre wrap=""><!---->
In order for it to compile under the shell I've got to place the file
in Erlang's bin directory. Not exactly the place where you want to be
storing your src and beam files.--Chris Baker
#end
_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</body>
</html>