[erlang-questions] sticky dir, have to restart shell to compile?

Bengt Kleberg <>
Tue Jun 17 07:42:59 CEST 2008


Greetings,

This is in the FAQ:

9.7 What is a sticky directory?
 This typically crops up when playing with examples from the old (last
century) Erlang book, for instance: 
        1> c(sets.erl).
        {error,sticky_directory}
        

 The problem is that there already is a standard library module called
'sets'. The Erlang runtime system is protecting you. 
 The easiest solution is to rename your module, e.g. to mysets.erl. It
is also possible to 'un-stick' the directory containing the library
module. 


bengt

On Tue, 2008-06-17 at 04:53 +0000, Circular Function wrote:
> after a failed compile i get the response posted below when trying to
> recompile.
> it works if i restart the shell and recompile but do i have to restart
> the shell to do this?
> 
> 5> c(math).
> 
> =ERROR REPORT==== 17-Jun-2008::06:50:19 ===
> Can't load module that resides in sticky dir
> {error,sticky_directory}
> 6> 
> 
> 
> 
> 
> 
> ______________________________________________________________________
> Sök efter kärleken! 
> Hitta din tvillingsjäl på Yahoo! Dejting: http://se.meetic.yahoo..net
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list