我是Erlang Webmachine的新手,即使是启动一个基本的"hello world"也会遇到一些麻烦。每当我运行./start.sh
时,我都会遇到这样的大错误:
➜ webmachine git:(master) ./start.sh
Erlang/OTP 17 [erts-6.3.1] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
=PROGRESS REPORT==== 4-Mar-2015::17:27:09 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.35.0>},
{name,alarm_handler},
{mfargs,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 4-Mar-2015::17:27:09 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.36.0>},
{name,overload},
{mfargs,{overload,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 4-Mar-2015::17:27:09 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.34.0>},
{name,sasl_safe_sup},
{mfargs,
{supervisor,start_link,
[{local,sasl_safe_sup},sasl,safe]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 4-Mar-2015::17:27:09 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.37.0>},
{name,release_handler},
{mfargs,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 4-Mar-2015::17:27:09 ===
application: sasl
started_at: nonode@nohost
Eshell V6.3.1 (abort with ^G)
1>
=PROGRESS REPORT==== 4-Mar-2015::17:27:09 ===
application: crypto
started_at: nonode@nohost
{"init terminating in do_boot",{{badmatch,{error,{not_started,mochiweb}}},[{webmachine,start,0,[{file,"src/webmachine.erl"},{line,36}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
值得一提的是,我使用的是MacOSX,但在Docker容器中使用Ubuntu时也会出现同样的错误。
对于任何谷歌用户来说,我的问题是我必须使用示例生成器创建一个新项目,而不仅仅是运行克隆repo中的普通start.sh
。希望这能帮助人们。