Skip to content

Instantly share code, notes, and snippets.

@blackode
Created April 28, 2023 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blackode/ed44b58147388aadeea792649f6e0997 to your computer and use it in GitHub Desktop.
Save blackode/ed44b58147388aadeea792649f6e0997 to your computer and use it in GitHub Desktop.
Erlang older versions Installation process
#!/bin/sh
git clone https://github.com/openssl/openssl.git --branch OpenSSL_1_0_2-stable
cd openssl
./config --prefix=$HOME/.openssl-1.0 shared -fPIC
make depend && make && make install
mkdir -p $HOME/.openssl-1.0
cd $HOME/.openssl-1.0
ln -sf /usr/lib/openssl-1.0 lib
ln -sf /usr/include/openssl-1.0 include
KERL_CONFIGURE_OPTIONS="--without-javac --disable-debug --with-ssl=$HOME/.openssl-1.0"
asdf install erlang $1
@blackode
Copy link
Author

  1. Download the file and keep in your executable dir.
  2. Change file to executable mode chmod +x install_erlang.sh
  3. Install your version install_erlang.sh 19.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment