Skip to content
David Bernheisel edited this page May 14, 2021 · 9 revisions

Welcome to the asdf-erlang wiki!

Include wxwidgets webview on Arch Linux

You may get a warning that wxWidgets with webview was not included:

wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed, wxWebView will NOT be available

For Arch Linux, the way to include webview when installing wxWidgets is to install wxgtk2-dev wxgtk3-dev wxgtk-common-dev webkit2gtk (available in AUR). These libraries will be compiled and will detect that webkit2gtk is available, and therefore compile wxWidgets with webview support. You may not need both wxgtk2-dev and wxgtk3-dev versions; either may work (opposed to both).

Install Erlang 22 on Arch Linux

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

Install Erlang 21.3.8.17 on Arch Linux

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

Install Erlang 19.3 on Arch Linux

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

Install Erlang 19.3 on Fedora 27

Just install the package compat-openssl10-devel via dnf.