我想在Erlang中开发一个Web应用程序,所以我在Windows 7上安装了Yaws 1.92。
但是当我尝试用yaws
和yaws -i
启动Yaws时,我收到此错误消息:
C:\Users\Jonas>yaws
{"init terminating in do_boot",{undef,[{yaws,start,[]},{init,start_it,1},{init,s
tart_em,1}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
C:\Users\Jonas>
有什么我想念的吗?我该如何解决这个问题?
在Steve建议的帮助下,我意识到我的Erlang运行时太旧了。我从R14B升级到R15B。现在Yaws开始了,但它仍然在启动时打印出一些错误:
C:\Users\Jonas>yaws
Eshell V5.9 (abort with ^G)
1>
=INFO REPORT==== 2-Feb-2012::16:22:13 ===
Yaws: Using config file C:\Program Files (x86)\Yaws-1.92\yaws.conf
1>
=ERROR REPORT==== 2-Feb-2012::16:22:13 ===
'auth_log' global variable is deprecated and ignored. it is now a per-server var
iable1>
=INFO REPORT==== 2-Feb-2012::16:22:13 ===
Reading .yaws_auth c:/Program Files (x86)/Yaws-1.92/www/authtest/auth_in_dot_yaw
s_auth/abc/.yaws_auth
1>
=ERROR REPORT==== 2-Feb-2012::16:22:13 ===
Cannot open "c:/Program Files (x86)/Yaws-1.92/logs/localhost.8080.auth"1>
=ERROR REPORT==== 2-Feb-2012::16:22:13 ===
Cannot open "c:/Program Files (x86)/Yaws-1.92/logs/localhost.8080.access"1>
=INFO REPORT==== 2-Feb-2012::16:22:14 ===
Ctlfile : c:/Users/Jonas/AppData/Local/Temp/yaws/default/CTL
1>
=INFO REPORT==== 2-Feb-2012::16:22:14 ===
Yaws: Listening to 0.0.0.0:8080 for <1> virtual servers:
- http://localhost:8080 under c:/Program Files (x86)/Yaws-1.92/www
1>
有关为什么会出现这么多错误的任何建议?以及如何解决它们?
答案 0 :(得分:3)
undef
有人说找不到函数yaws:start/0
。似乎它可能是加载路径的问题。
尝试开始这样的雅司病:
yaws -i -erlarg "-boot start_sasl"
希望这会为您提供更详细的输出,以帮助您追踪问题。