当我试图安装yaws 1.89时,会引发以下错误。请帮我克服那个错误。
~/yaws$ sudo yaws
Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:true]
Eshell V5.10.4 (abort with ^G)
1> =ERROR REPORT==== 14-Mar-2014::15:05:09 ===
Failed to load setuid_drv (from "/usr/local/lib/yaws/priv/lib") : "Driver compiled with incorrect version of erl_driver.h"
=ERROR REPORT==== 14-Mar-2014::15:05:09 ===
FATAL {'EXIT',normal}
=INFO REPORT==== 14-Mar-2014::15:05:09 ===
application: yaws
exited: {{shutdown,
{failed_to_start_child,yaws_server,
{badconf,
[{yaws_server,init,1,
[{file,"yaws_server.erl"},{line,159}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,304}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,239}]}]}}},
{yaws_app,start,[normal,[]]}}
type: permanent
{"Kernel pid terminated",application_controller,"{application_start_failure,yaws,{{shutdown,{failed_to_start_child,yaws_server,{badconf,[{yaws_server,init,1,[{file,\"yaws_server.erl\"},{line,159}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]}}},{yaws_app,start,[normal,[]]}}}"}
Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,yaws,{{shutdown,{failed_to_start_child,yaws_server,{badconf,[{yaws_server,init,1,[{file,"yaws_server.erl"},{line,159}]},{ge发布于 2014-03-14 13:47:21
Yaws 1.89是在2010年9月发布的,但是你试图在2013年12月发布的更新版本Erlang,R16B03上运行它。Yaws使用的驱动程序是编译的本机代码,使用的Erlang驱动程序接口版本与您正在运行的Erlang版本不匹配,这就是您所看到的错误消息的原因。
上面的评论暗示您可以通过下载yaws-1.89.tar.gz并自己构建它来工作;如果是,那么是的,这是一个让它与您当前版本的Erlang一起工作的好方法。但是一个更好的方法是使用更新版本的Yaws --目前的最新版本是2013年11月发布的Yaws 1.98。
https://stackoverflow.com/questions/22402873
复制相似问题