Home > Installation > Building Erlang B13R04 in Ubuntu 9.10 Karmic

Building Erlang B13R04 in Ubuntu 9.10 Karmic

April 5th, 2010

Frankly speaking, I always use apt-get to install Erlang rather than building from source… lazy huh? Unfortunately, when I apt-get in Ubuntu 9.10 Karmic, only Erlang/OTP R13B01 (5.7.2) is available whereas the latest is R13B04 (5.7.5) which is required to build Riak (actually rebar requires 5.7.4 and above)…

It takes around 10-15 min to build, and these are the required libraries and dependencies

sudo apt-get install build-essential m4 libncurses5-dev libssl-dev xsltproc fop
axel -n 20 http://www.erlang.org/download/otp_src_R13B04.tar.gz
tar xfvz otp_src_R13B04.tar.gz
cd otp_src_R13B04/
./configure --with-ssl
sudo make install

Here i’m using axel for fast download, it’s your choice to use curl or wget.

Installation , , , , , ,

  1. May 6th, 2010 at 19:52 | #1

    Just loaded up a new vm on linode and needed to compile the newest erlang but was getting a compile problem. apparently i was missing some prerequisites that you pointed out here. Thanks. My only change would be to dl via the torrent:

    sudo apt-get install -y transmission-cli
    wget http://www.erlang.org/download/torrents/otp_src_R13B04.tar.gz.torrent
    transmissioncli otp_src_R13B04.tar.gz.torrent

    You may want to fiddle with transmissioncli’s options. Or use a different command line torrent client. Find them like so:

    apt-cache search torrent

  2. Trung
    May 7th, 2010 at 07:46 | #2

    Yo, Alex. Thanks for the tips, i never try to download torrent via command line. Suppose it would be much faster

  1. April 30th, 2010 at 07:36 | #1