Gleam can be installed with Termux's pkg by running this command:

pkg install gleam && pkg install erlang