public
Last active

Script to install Erlang 14B03 (tested on a fresh Ubuntu 11.04 install)

  • Download Gist
install-r14b03.sh
Shell
1 2 3 4 5 6 7 8 9 10 11
# 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

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.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.