Hi, everyone.
Today I tried to make my own code using Mochiweb but failed.
My environment: MS Windows2003; MINGW-5.1.4; MSYS-1.0.10; Erlang(BEAM)
emulator 5.6.3.
Repro steps are as follows (with the result in the parenthesis):
1. make Mochiweb. (succeeded)
2. run the command "escript scripts/new_mochiweb.erl mochidemo" under
the directory /mochiweb, where mochidemo is my own test project
directory.
(the result is as follows:
./mochidemo/
./mochidemo/support/
include.mk
start.sh
start-dev.sh
./mochidemo/src/
skel_web.erl
skel_sup.erl
skel_deps.erl
skel_app.erl
skel.hrl
skel.erl
skel.app
Makefile
./mochidemo/priv/
./mochidemo/priv/www/
index.html
Makefile
./mochidemo/include/
./mochidemo/ebin/
./mochidemo/doc/
./mochidemo/deps/
escript: exception error: no match of right hand side value
{error,enotsup}
in function mochiweb_skel:skelcopy/2
)
3. make mochidemo. (succeeded)
4. run command "start-dev.sh" under the directory /mochidemo.
(the result is as follows:
=PROGRESS REPORT==== 16-Jul-2008::19:45:43 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.32.0>},
{name,alarm_handler},
{mfa,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 16-Jul-2008::19:45:43 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.33.0>},
{name,overload},
{mfa,{overload,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 16-Jul-2008::19:45:43 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.31.0>},
{name,sasl_safe_sup},
{mfa,
{supervisor,start_link,
[{local,sasl_safe_sup},sasl,safe]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 16-Jul-2008::19:45:43 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.34.0>},
{name,release_handler},
{mfa,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 16-Jul-2008::19:45:43 ===
application: sasl
started_at: nonode@nohost
{"init terminating in do_boot",{undef,[{reloader,start,[]},
{init,start_it,1},{init,start_em,1}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
)
As a result, I couldn't access
http://127.0.0.1:8000, which implied
that the web server was not working well.
Can anyone be so kind as to help me?
Thanks,
Enhnaran