<div>In windows, it is better to have a shortcut of erlang in your desktop.</div>
<div>You can compile the .erl file in two ways</div>
<div>1. Right click on the shortcut -> Properties -> Give the path of .erl file in the "Start in " text box. Then open the shell and compile the module.</div>
<div>2. Open erlang shell. Then change the current directory using cd("Path of .erl file"). Then compile the module.</div>
<div> </div>
<div>I hope this answers the queries.<br><br> </div>
<div><span class="gmail_quote">On 3/6/07, <b class="gmail_sendername">Dmitrii 'Mamut' Dimandt</b> <<a href="mailto:dmitriid@gmail.com">dmitriid@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div text="#000000" bgcolor="#ffffff">Hmmm...<br><br>As far as I remember (I'm on Linux now), I always used the Windows installer from <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://erlang.org/" target="_blank">
erlang.org</a>.<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.
<div><span class="e" id="q_11126771c68b24d4_1"><br><br>Joe Armstrong wrote:
<blockquote cite="http://mid9b08084c0703060039l77c05561u78176fe953d5b2a8@mail.gmail.com" type="cite"><pre>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 onclick="return top.js.OpenExtLink(window,event,this)" href="http://books.pragprog.com/titles/jaerlang/errata" target="_blank">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>into a file called shop.erl.
</pre></blockquote><pre>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>cd erlang/erts*/windows/bin
start werl.exe
</pre></blockquote><pre>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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a>
</pre></blockquote><br></span></div></div><br>_______________________________________________<br>erlang-questions mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:erlang-questions@erlang.org">
erlang-questions@erlang.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>with regards,<br>S.Surindar