Loading code from an archive
Ben Hood
0x6e6562@REDACTED
Sun Jul 12 14:12:09 CEST 2009
Hi,
I'm using the archive code loading mechanism introduced in R12B5 and
I'm getting some strange error messages - despite the fact that the
code seems to have loaded correctly.
I've created an archive called mod_http.ez with the following structure:
Listing archive: deps/mod_http.ez
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2009-07-12 13:56:28 D.... 0 0 mod_http
2009-07-12 13:56:28 D.... 0 0 mod_http/ebin
2009-07-12 13:56:28 ..... 284 143 mod_http/ebin/mod_http.app
2009-07-12 13:56:28 ..... 1396 1111 mod_http/ebin/mod_http.beam
2009-07-12 13:56:28 ..... 1148 862
mod_http/ebin/mod_http_app.beam
2009-07-12 13:56:28 ..... 3292 2636
mod_http/ebin/mod_http_deps.beam
2009-07-12 13:56:28 ..... 3000 2413
mod_http/ebin/mod_http_sup.beam
2009-07-12 13:56:28 ..... 2096 1749
mod_http/ebin/mod_http_web.beam
------------------- ----- ------------ ------------ ------------------------
11216 8914 6 files, 2 folders
When I load this into the interpreter using the ERL_LIBS variable,
everything seems to work, apart from a spurious error message in the
shell:
** Bad path can't read plugins/mod_http.ez/mod_http/ebin
** Found 0 name clashes in code paths
Is this something I need to be concerned about?
This behavior appears to be consistent in R12B5 and R13B01.
Also, ran into a gotcha with this, which might be relevant: When I
created the zip files, I used the following arguments:
zip -r mod_http.ez mod_http/ebin/*
which has the effect of omitting the top level directory in the zip
file. This contradicts the the specification describe in the man page
for the code module and hence fails to load.
Cheers,
Ben
More information about the erlang-questions
mailing list