Skip to content

Instantly share code, notes, and snippets.

@bryanhunter
Created May 25, 2011 19:28
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save bryanhunter/991706 to your computer and use it in GitHub Desktop.
Save bryanhunter/991706 to your computer and use it in GitHub Desktop.
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
wget http://www.erlang.org/download/otp_src_R14B03.tar.gz
tar -xvzf otp_src_R14B03.tar.gz
chmod -R 777 otp_src_R14B03
cd otp_src_R14B03
./configure
make
make install
@develop7
Copy link

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

@bryanhunter
Copy link
Author

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