Create a gist now

Instantly share code, notes, and snippets.

Script to install Erlang 14B03 (tested on a fresh Ubuntu 11.04 install)
# You will need to make this file executable (chmod u+x) and run it with sudo
apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
mkdir -p /src/erlang
cd /src/erlang
tar -xvzf otp_src_R14B03.tar.gz
chmod -R 777 otp_src_R14B03
cd otp_src_R14B03
make install

if you're refusing to rebuild erlang packages (which is, I admit, pretty difficult) why not to use kerl?


Thanks for the note. I was unfamiliar with "kerl". It looks very cool.

I did run into one problem using it. It failed to build R14B04 on a fresh Ubuntu 11.10 box. The build log shows:
configure: error: No curses library functions found
configure: error: /bin/bash '/home/bryanhunter/.kerl/builds/r14b04/otp_src_R14B04/erts/configure' failed for erts

I did a "sudo apt-get update" and tried to build with kerl again and it failed in the same way. I then did a "sudo apt-get -y install libncurses5-dev". I tried again after that, and everything builds successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment