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. ![]()
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










