Compiling Erlang OS for different operating systems

Hello together,

just to discuss or getting some hints for compiling erlang directly from GitHub for different operating systems. How do you compiling a erlang releases for specific operating systems, e.g. OTP-28.3
for Debian Trixie, FreeBSD 15, FreeBSD 14, RedHat Linux, newer Ubuntu-- Systems?

Currently my way is to setup all operating systems as virtual machines and compiling it directly on the OS (sometimes with the .kerl script) and zipping the release and copy back. I know “erlang-solutions” has some OS with compiled releases erlang but not for all operating systems and OTP-Tags from GitHub if a fix is done etc.

Do you know another smother way for compiling erlang for different os?

In my experience what you’re doing with the VMs is entirely reasonable. You might cut corners by only cross-compiling, but then you wouldn’t know if your builds actually work.

Someone might counter by saying to compile the BEAM for some “universal” VM, but that is unproven ground and in my opinion rather pointless.

1 Like

Hi,

Or you can also use source package manager builds. All those OS have OTP packages and one could bump to 28.3 and run its own local build.