ferd / ferd/howistart-erlang1-code

Problems on windows

Open
#1 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Erlang
Stars
27
Forks
5
PR merge metrics
No merged PRs in 30d

Description

I've made it to rebar and relx launch in the tutorial.

rebar works fine (I had to comment out relx post_hook because it would give me a : {"init terminating in do_boot",{'cannot get bootfile','start_clean.boot'}} error message)
relx - works fine too (complains about Missing beam file elf_format <<"c:/erl/lib/hipe-3.11.2/ebin/elf_format.beam but passes)
the problem is the launch of the application: launching the app with generated muumuu.cmd gives me :
{"init terminating in do_boot",'cannot expand $ERTS_LIB_DIR in bootfile'}

I edited the muumuu.cmd to pass the variable explicitly (although I assume it is a bug in relx)
@%erl% %erl_opts% %sys_config% -boot "%boot_script%" -boot_var ERTS_LIB_DIR "c:\erl\lib" %*

then I get a bit further:
1> {"Kernel pid terminated",application_controller,"{application_start_failure,m
uumuu,{{shutdown,{failed_to_start_child,console,{'EXIT',{undef,[{muumuu,start_li
nk,[],[]},{supervisor,do_start_child,2,[{file,\"supervisor.erl\"},{line,314}]},{
supervisor,start_children,3,[{file,\"supervisor.erl\"},{line,297}]},{supervisor,
init_children,2,[{file,\"supervisor.erl\"},{line,263}]},{gen_server,init_it,6,[{
file,\"gen_server.erl\"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_
lib.erl\"},{line,237}]}]}}}},{muumuu_app,start,[normal,[]]}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,muumu
u,{{shutdown,{failed_to_start_child,console,{'EXIT',{undef,[{muumuu,start_link,[
],[]},{supervisor,do_start_child,2,[{f

I googled quite a bit to get this far. I have newest erlang 17.4, newest rebar and relx built myself. Has anyone ever passed this tutorial in full on windows?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the tutorial launch on Windows using the generated muumuu.cmd, after reviewing the relx post_hook and the reported ERTS_LIB_DIR and muumuu:start_link errors. Done means the generated command launches the muumuu application without manual edits or the tutorial documents the required Windows-specific steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.