Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Just as the title says, how do I install erlang in my Ubuntu 12.04?

share|improve this question
    
Refer this link. This will help you to install erlang though you already download the Source Package or not. –  Hasitha Dec 10 '13 at 4:44

5 Answers 5

Here is how. Open a terminal and type

sudo apt-get install erlang erlang-doc
share|improve this answer

You can find more up-to-date packages here (Ubuntu 12.04 has R14B04, while the latest version is R15B02). Download the appropriate package and run:

sudo dpkg -i esl-erlang_15.b.2-1~ubuntu~precise_amd64.deb

(adjust as appropriate for the 32-bit package)

share|improve this answer

You will need to make this file executable (chmod u+x) and run it with sudo

apt-get update
apt-get --fix-missing -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_R15B01.tar.gz 
tar -xvzf otp_src_R16B01.tar.gz 
chmod -R 777 otp_src_R16B01 
cd otp_src_R16B01 
./configure
make
make install
share|improve this answer

I would advice you install it through the Ubuntu Software Center.

To install erlang from Ubuntu Software Center:

  1. Open the Ubuntu Software Center.

  2. Type erlang into the search.Under the 'Concurrent, real-time, distributed functional language' title

  3. Check the Add-on, though optional, for additional features.

  4. Click on 'install' to install it.

share|improve this answer

From the source code, you could do this:

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
wget http://www.erlang.org/download/otp_src_R16B01.tar.gz
tar -xvzf otp_src_R16B01.tar.gz
chmod -R 777 otp_src_R16B01
cd otp_src_R16B01
./configure
make
sudo make install

Note: in some commands it will be necessary have root permissions, so it's adviced to use sudo or su when it's asked. (as you can see some commands already have sudo as prefix)

share|improve this answer
1  
It is unnecesary to set the executable bit to all the files! Also, make install will fail if you are not root. –  Braiam Aug 7 '13 at 15:08
    
Also next time just link to the complete script not copy just part of it –  mojo706 Sep 17 '13 at 21:07
    
Thank you Paulo Oliveira. I didn't understand why they down voting your answer. If some one is installing from the source, the first line (apt-get) is very important. A tip: there is no need the `chmod' line. –  Lourenco Feb 19 at 23:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.