HowTo recompile erlang source code?
Sean Hinde
Sean.Hinde@REDACTED
Mon Jul 16 15:40:44 CEST 2001
> I've changed the ftp.erl file that was very easy, but how do
> I recompile the
> Erlang source code?
The quick and dirty way is use:
erlc ftp.erl
at the unix prompt where you have your new ftp.erl. This gives you the
ftp.beam file you need. Then if you just copy this into
erlang/lib/inets-x.x.x/ebin wherever you have installed Erlang you will get
the new version next time you start it up.
Or you could put it somewhere which comes before inets in your code path:
If you add something like:
code:add_patha("/home/nico/patches").
in your .erlang file then the erlang runtime will look here for the ftp.erl
file before anywhere else. You may run in to trouble with sticky directories
(the shell tries to stop you re-loading core erlang modules as a kind of
basic protection against user messups) so this is probably not the best way
forward.
Sean
NOTICE AND DISCLAIMER:
This email (including attachments) is confidential. If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents. We cannot accept liability for any breaches of
confidence arising through use of email. Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions. We will not accept responsibility for any commitments
made by our employees outside the scope of our business. We do not warrant
the accuracy or completeness of such information.
More information about the erlang-questions
mailing list