This page gives instructions for installing Erlang on Windows while on campus using a local copy. If you are off-campus or installing on a non-Windows OS, you probably want to go directly to the installation instructions on the Erlang website. Then come back here and try the steps to verify that your installation is working.
C:\Program Files\erl5.7.3\usr\.erlang
using Notepad++. This location is different than the one given on p. 37 of Programming Erlang and is the location you should use for the werl
Erlang shell.
io:format("Loading .erlang from ~p~n", [element(2, file:get_cwd())]). %% Change the line below to the path to where you store your code. %% Note: Erlang is not a good Windows citizen, so use forward slashes c:cd("c:/path/to/your/work/dir"). io:format("Now in: ~p~n", [element(2, file:get_cwd())]).
Follow these steps to verify that your installation is working:
Launch the Erlang shell:
erl
at a shell prompt.) You should get a prompt like in the figure below.
1>
prompt, enter 6 * 7.
— don't forget the period — and press enter. You should get the answer.
pwd().
Again, don't forget the period. On Windows, you should get the path you configured above. On a Unix OS, you should get the path you were in when you launched the Erlang shell.
cd("directory path").
q().
to quit.