> apt-get purge erlang > apt-get build-dep erlang > apt-get install curl > apt-get install libc6-dev > apt-get install libncurses5-dev > apt-get install m4 > apt-get install libssl-dev > apt-get install erlang-mode > apt-get install openjdk-6-jdk > cd /usr/local/src/ > git clone --recursive git://github.com/erlang/otp.git erlang-otp > cd erlang-otp > ## Replace this with newer version if you wish > git checkout OTP_R14B01 > ./otp_build autoconf > ./configure --prefix=/usr/local > make > make install > curl https://raw.github.com/agner/agner/master/scripts/oneliner | sh > export ERL_LIBS="/usr/local/agner/packages" > echo >> /etc/environment > echo 'ERL_LIBS="/usr/local/agner/packages"' >> /etc/environment
Installing Erlang and Agner Package Manager from Source on Ubuntu 10.04
I have had many problems using the default erlang package on ubuntu, so I have found it best to install from source. I also use the Agner package manager which simplifies Erlang package management. You will need to run most of these commands as sudo.
Posted by Brendon at 9/12/2011 06:05:00 PM