Skip to content

Instantly share code, notes, and snippets.

@mwingert
Last active June 21, 2024 09:22
Show Gist options
  • Select an option

  • Save mwingert/a08497775c91aabc4c14afc8fb196859 to your computer and use it in GitHub Desktop.

Select an option

Save mwingert/a08497775c91aabc4c14afc8fb196859 to your computer and use it in GitHub Desktop.
This script is used to install Elixir 1.17.1 and Erlang 27.0 from source on Ubuntu 24.04 LTS Nobble Numbat.
#!/bin/bash
# This script is used to install Elixir 1.17.1 and Erlang 27.0 on Ubuntu 24.04 LTS Nobble Numbat
# Author: mwingert
## Prerequisites
sudo apt-get update
sudo apt-get install \
build-essential autoconf libncurses-dev openssl libssl-dev \
fop xsltproc unixodbc-dev git -y
## Install Erlang
wget https://github.com/erlang/otp/releases/download/OTP-27.0/otp_src_27.0.tar.gz
tar -zxvf otp_src_27.0.tar.gz
rm -f otp_src_27.0.tar.gz
cd otp_src_27.0/
./configure
make
sudo make install
export PATH="$PATH:~/otp_src_27.0/bin"
cd ..
## Install Elixir
wget https://github.com/elixir-lang/elixir/archive/v1.17.1.tar.gz
tar -zxvf v1.17.1.tar.gz
rm -f v1.17.1.tar.gz
cd elixir-1.17.1/
make clean compile
sudo make install
export PATH="$PATH:~/elixir-1.17.1/bin"
cd ..
## Install Hex and Rebar
mix local.rebar --force
mix local.hex --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment