如何在ubuntu中设置yaws 1.89

时间:2014-03-14 10:47:51

标签: erlang erl

当我尝试安装偏航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

1 个答案:

答案 0 :(得分:2)

Yaws 1.89于2010年9月发布,但您试图在2013年12月发布的更新版本的Erlang,R16B03上运行它.Yaws使用的驱动程序,编译后的本机代码,已编译使用与您正在运行的Erlang版本不匹配的Erlang driver interface版本,这是导致您看到的错误消息的原因。

您的上述评论暗示您可以通过下载yaws-1.89.tar.gz并自行构建来使其正常运行;如果是的话,那么是的,这是让它与你当前版本的Erlang一起工作的好方法。但更好的方法是使用更新版本的Yaws - 撰写本文时的最新版本为Yaws 1.98,于2013年11月发布。