Yaws server - how to start it?

I don’t quite understand what he lacks to start the application.

 application: yaws
    exited: {{shutdown,
                 {failed_to_start_child,yaws_server,
                     {undef,
                         [{compile,file,
                              ["/home/oper/.yaws/yaws/default/yaws_dynopts.erl",
                               [binary,report,return_errors,
                                {d,'HAVE_SAFE_RELATIVE_PATH'}]],
                              []},
                          {yaws_dynopts,generate1,1,
                              [{file,
                                   "/home/oper/Programs/abc1/abc/_build/default/lib/yaws/src/yaws_dynopts.erl"},
                               {line,199}]},
                          {yaws_server,init2,5,
                              [{file,
                                   "/home/oper/Programs/abc1/abc/_build/default/lib/yaws/src/yaws_server.erl"},
                               {line,235}]},
                          {gen_server,init_it,2,
                              [{file,"gen_server.erl"},{line,851}]},
                          {gen_server,init_it,6,
                              [{file,"gen_server.erl"},{line,814}]},
                          {proc_lib,init_p_do_apply,3,
                              [{file,"proc_lib.erl"},{line,240}]}]}}},
             {yaws_app,start,[normal,[]]}}
    type: permanent

It’s saying that compile:file/2 doesn’t exist in the OTP you’re using here. This could be because OTP was built without certain applications (compiler in this case), or those applications weren’t installed. Or there’s configuration in place which prevents OTP from dynamically loading missing modules.

1 Like