我在 Ejabberd 上使用 erlang R14B01,当我在我的 Lion 上启动 Ejabberd 时,它显示错误,谁能告诉我原因,谢谢!我有主机配置{hosts, ["localhost"]}.
=INFO REPORT==== 2012-09-18 23:35:10 ===
application: ejabberd
exited: {bad_return,
{{ejabberd_app,start,[normal,[]]},
{'EXIT',
{badarg,
[{erlang,port_control,
[stringprep_port,2,"localhost"],
[]},
{stringprep,control,2,[]},
{jlib,nodeprep,1,[]},
{ejabberd_config,normalize_hosts,2,[]},
{ejabberd_config,add_hosts_to_option,2,[]},
{lists,foldl,3,[{file,"lists.erl"},{line,1197}]},
{ejabberd_config,load_file,1,[]},
{ejabberd_config,start,0,[]}]}}}}
type: temporary
=ERROR REPORT==== 2012-09-18 23:44:32 ===
Error in process <0.2102.0> on node 'ejabberd@localhost' with exit value: {{case_clause,{error,{open_error,-16}}},[{ejabberd_app,init,0,[]}]}
=INFO REPORT==== 2012-09-18 23:44:32 ===
application: ejabberd
exited: {bad_return,
{{ejabberd_app,start,[normal,[]]},
{'EXIT',
{badarg,
[{erlang,port_control,
[stringprep_port,2,"localhost"],
[]},
{stringprep,control,2,[]},
{jlib,nodeprep,1,[]},
{ejabberd_config,normalize_hosts,2,[]},
{ejabberd_config,add_hosts_to_option,2,[]},
{lists,foldl,3,[{file,"lists.erl"},{line,1197}]},
{ejabberd_config,load_file,1,[]},
{ejabberd_config,start,0,[]}]}}}}
type: temporary