windows - 在 Windows 上启动 Yaws 时出现 "init terminating in do_boot"错误消息

标签 windows yaws

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

但是当我尝试同时使用 yawsyaws -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>

关于为什么我收到这么多错误有什么建议吗?以及如何解决这些问题?

最佳答案

那里的undef说找不到函数yaws:start/0。看起来可能是加载路径的问题。

尝试像这样开始雅司病:

yaws -i -erlarg "-boot start_sasl"

希望这将为您提供更详细的输出,以帮助您找出问题。

关于windows - 在 Windows 上启动 Yaws 时出现 "init terminating in do_boot"错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9087726/

相关文章:

windows - 为什么 Windows 32 位称为 Windows x86 而不是 Windows x32?

json - Erlang - 转换二进制可读UTF

erlang - 嵌入了 appmod 的 YAW 对我不起作用

python - 在 mac 上编写 python 以在 Windows 上使用

python - 在python中获取短路径

erlang - 如何在 Yaws/Erlang 中重写 URL

macos - 无法在 Mac OS X 10.9 上构建 Yaws

erlang - 在 Nitrogen Web 服务器中设置文件下载的内容 header

windows - PostQuitMessage(WM_QUIT)与 PostQuitMessage(0)

Windows:如何将我的 PostgreSQL 用户设置为 super 用户?