2

我想用 Erlang 开发一个 Web 应用程序,所以我在 Windows 7 上安装了 Yaws 1.92。

但是当我尝试同时启动 Yaws 时yawsyaws -i我收到以下错误消息:

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>

有什么我想念的吗?我该如何解决这个问题?


在史蒂夫建议的帮助下,我意识到我的 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>

关于为什么我得到这么多错误的任何建议?以及如何解决它们?

4

1 回答 1

4

undef有人说yaws:start/0找不到该功能。似乎这可能是加载路径的问题。

尝试像这样开始偏航:

yaws -i -erlarg "-boot start_sasl"

希望这会给您提供更详细的输出,以帮助您找出问题所在。

于 2012-02-02T14:59:03.310 回答