mrsnow
Compile erlang with asdf and kerl on ubuntu
Hey,
I’m new to elixir/erlang and try to find the best erlang compile options to compile erlang with asdf and kerl on an ubuntu based distribution.
Are there any recommendations of erlang compile configs i should add to kerl to have erlang compiled with the newest features or best fit for me (a newbie)?
Have a nice day,
Daniel
Most Liked
garazdawi
I would set KERL_BUILD_DOCS=yes so that you get EEP-48 style docs for all Erlang/OTP modules. Your IDE can use this to show docs and h in iex will as well.
If you want to optimize the runtime a bit, you can add -march=native to the CFLAGS (CFLAGS="-O2 -g -march=native"). Keep in mind that this will make the Erlang install less portable, but if you are only using it on that specific machine (i.e. it is not a docker image or something like that) then there is no downside.
Eiji
Persnally for new developers I would rather recommend installing a precompiled erlang releases, see asdf-erlang-prebuilt-ubuntu repositories.
Eiji
Regardless of the installation way it’s also worth to enable the shell history. ![]()







