Skip to content

Instantly share code, notes, and snippets.

@seanjensengrey
Last active July 3, 2019 17:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanjensengrey/808544636b5f3715625584fc1c97615a to your computer and use it in GitHub Desktop.
Save seanjensengrey/808544636b5f3715625584fc1c97615a to your computer and use it in GitHub Desktop.
Installing the Basho Maintained Erlang with Kerl

How to install Basho Erlang using Kerl.

note: Instructions for other platforms are available in the Erlang docs

install kerl

curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl
chmod +x kerl

bulid Erlang, R16B02_basho10

Centos 7

prerequisites

yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel \
	autoconf java-1.8.0-openjdk-devel git \
	pam-devel perl-Digest-SHA
CFLAGS="-DOPENSSL_NO_EC=1" ./kerl build git https://github.com/basho/otp OTP_R16B02_basho10 R16B02-basho10

Ubuntu 14.04

prerequisites

apt-get -y install build-essential git autoconf libncurses5-dev openssl libssl-dev \
	fop xsltproc unixodbc-dev git

# BEGIN: install-oracle-jdk
apt-add-repository -y ppa:webupd8team/java
apt-get update
apt-get install -y debconf-utils

echo debconf shared/accepted-oracle-license-v1-1 select true | \
    debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | \
    debconf-set-selections

apt-get -y --force-yes install oracle-java8-installer
# END: install-oracle-jdk

build

./kerl build git https://github.com/basho/otp OTP_R16B02_basho10 R16B02-basho10

install build

./kerl install R16B02-basho10 /opt/erlang/R16B02-basho10

use build

. /opt/erlang/R16B02-basho10/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment