Just as the title says, how do I install erlang in my Ubuntu 12.04?
-
Refer this [link](http://code.google.com/p/erlang-quiz/wiki/InstallingErlangLinux). This will help you to install erlang though you already download the Source Package or not. – Hasitha Dec 10 '13 at 04:44
6 Answers
Here is how. Open a terminal and type
sudo apt-get install erlang erlang-doc
- 35,223
- 15
- 82
- 101
You will need to make this file executable (chmod u+x) and run it with sudo.
apt-get update
# replace libwxgtk2.8-dev with libwxgtk3.0-dev for Ubuntu 16.04
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
-
`chmod 777` is never a good idea, and in this case it's completely unnecessary. – legoscia Jan 28 '16 at 15:03
I would advise you install it through the Ubuntu Software Center.
To install erlang from Ubuntu Software Center:
Open the Ubuntu Software Center.
Type
erlanginto the search. Under the 'Concurrent, real-time, distributed functional language' title...Check the Add-on, though optional, for additional features.
Click on 'install' to install it.
- 116,445
- 54
- 318
- 493
- 1,554
- 1
- 12
- 20
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)
- 139
- 4
-
2It is unnecesary to set the executable bit to all the files! Also, `make install` will fail if you are not root. – Braiam Aug 07 '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 '14 at 23:51
You should be able to search the software repository to see if the package you are looking for is in and the repository, and that the version of the software is in the repository.
You can open the terminal with Ctrl+Alt+t, after doing so simply run the commands below:
:~$ apt-cache search erlang
// if erlang exists in the current repository, you can check its dependencies with:
:~$ apt-cache depends erlang
// if erlang is in the repository and its the version you want to install
// gain super-user privileges
:~$ sudo bash
// and install with apt-get
:~# apt-get -y install erlang
:~# apt-get -y install erlang-doc
:~# exit
:~$
I hope this helps!
- 541
- 2
- 9