[erlang-questions] newb: Inside Erlang shell, go to directory and compile a module how to?

Michael McDaniel <>
Fri Sep 28 18:47:11 CEST 2007


On Fri, Sep 28, 2007 at 08:45:57AM -0700, nintendo wrote:
> I have one questions:
> 1) How do I change directory inside the Erlang shell, so that I can go
> get a file and then compile this module into beam?
> 
> My module located in:
> C:\Program Files\myproject\elang\mymodule.erl
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

1> c("C:\\Program\ Files\\myproject\\elang\\mymodule.erl").
{ok,mymodule}
2>

 or, if you are already in myproject directory ...

3> c("elang\\mymodule").
{ok,mymodule}


~Michael

> 
> Side note:
> 
> I did a complete install of erlang for windows and it doesn't set the
> path for erlang.
> I checked the documentation and searched on goolge, there is no
> mention of setting the path.  I just added it to my windows path=C:
> \Program Files\erl5.5.5\bin.
> 
> My 2cents:
> I think you should add it to FAQ at http://www.erlang.org/faq/faq.html#AEN430
> on hello world.
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 
> !DSPAM:52,46fd2cff73321471919437!
> 
> 

-- 
Michael McDaniel
Portland, Oregon, USA
http://autosys.us
+1 503 283 5284



More information about the erlang-questions mailing list