↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

Installing Erlang

Riak binaries include Erlang, but building and running Riak from source requires installing Erlang separately. Basho recommends its patched Erlang build for Riak 2.0 because later official Erlang/OTP releases include the patches, and the recommended version is needed for Riak security features.

The page outlines installation paths with kerl, manual source builds, Homebrew, and MacPorts, and it lists platform-specific prerequisites for macOS, GNU/Linux, FreeBSD, Solaris, Debian/Ubuntu, and RHEL/CentOS.

Reading notes
#

  • Riak source builds require an Erlang installation.
  • Basho recommends its patched Erlang version for Riak 2.0.
  • Using another Erlang version prevents use of Riak security features.
  • Building Erlang needs a GNU-compatible build system and ncurses and OpenSSL development bindings.
  • Riak binary packages for Debian, Ubuntu, Mac OS X, RHEL, and CentOS already include Erlang.
  • The Five-Minute Install requires downloading and installing Erlang.
  • kerl is presented as the easiest way to install Erlang from source.
  • On macOS, kerl may need a ~/.kerlrc file with configure options for 64-bit builds.
  • On OS X 10.9 and later, autoconf may need to be installed with Homebrew.
  • On FreeBSD, Solaris, and SmartOS, HIPE should be disabled when building with kerl.
  • On GNU/Linux, most distributions require installing Erlang from source.
  • Debian and Ubuntu need build-essential, libncurses5-dev, openssl, libssl-dev, fop, xsltproc, and unixodbc-dev.
  • Graphics support packages are only needed if Erlang GUI utilities will be used.
  • RHEL and CentOS need gcc, gcc-c++, glibc-devel, make, ncurses-devel, openssl-devel, autoconf, and java-openjdk-devel.
  • On some RHEL6 and CentOS6 systems, CFLAGS="-DOPENSSL_NO_EC=1" must be added to ./configure.
  • On macOS, Erlang can be built from source, installed with Homebrew, or installed with MacPorts.
  • Homebrew installs Erlang automatically when installing Riak on macOS.
  • MacPorts installs Erlang with port install erlang +ssl.