-
Notifications
You must be signed in to change notification settings - Fork 119
Home
David Bernheisel edited this page Apr 19, 2021
·
9 revisions
Welcome to the asdf-erlang wiki!
You might run into trouble installing Erlang with newer build tools, such as autoconf 2.70. You can avoid this by
- downgrading autoconf to 2.69. You can use downgrade as a tool to help downgrade
- by using a newer version of OTP which takes care of this build issue.
- using a patched kerl mentioned in this GitHub issue https://github.com/kerl/kerl/issues/359
You'll see this message:
=== Running configure in /home/$USER/.asdf/plugins/erlang/kerl-home/builds/asdf_22.3.4.12/otp_src_22.3.4.12/make ===
./configure --disable-option-checking --cache-file=/dev/null --srcdir="/home/$USER/.asdf/plugins/erlang/kerl-home/builds/asdf_22.3.4.12/otp_src_22.3.4.12/make"
configure: error: cannot find required auxiliary files: install-sh config.guess config.sub
Arch Linux is a rolling release with recent gcc versions. Compiling earlier Erlang versions may require you to compile with an earlier version of gcc.
pacman -Sy gcc9
CC=gcc-9 asdf install erlang 21.3.8.17
Arch Linux ships with openssl 1.1, which is not compatible with Erlang 19.3 and fails during installation. In order to fix that:
sudo pacman -S openssl-1.0
mkdir -p ~/.openssl-1.0
cd ~/.openssl-1.0
ln -sf /usr/lib/openssl-1.0 lib
ln -sf /usr/include/openssl-1.0 include
ERLANG_OPENSSL_PATH=~/.openssl-1.0 asdf install erlang 19.3
Just install the package compat-openssl10-devel
via dnf.