照着园子里一篇博文安装erlang,各种错调不出来。最后发现官网有解决方案:
https://www.erlang-solutions.com/downloads/download-erlang-otp
Installation using repository
1. Adding repository entry
To add Erlang Solutions repository (including our public key for apt-secure
) to your system, call the following commands:
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
Alternatively: adding the repository entry manually
Add one of the following lines to your /etc/apt/sources.list
(according to your distribution):
deb http://packages.erlang-solutions.com/debian raring contrib
deb http://packages.erlang-solutions.com/debian quantal contrib
deb http://packages.erlang-solutions.com/debian precise contrib
deb http://packages.erlang-solutions.com/debian oneiric contrib
deb http://packages.erlang-solutions.com/debian lucid contrib
To verify which distribution you are running, run lsb_release -c
in console.
Next, add the Erlang Solutions public key for apt-secure
using following commands:
wget http://packages.erlang-solutions.com/debian/erlang_solutions.asc
sudo apt-key add erlang_solutions.asc
2. Installing Erlang
Refresh the repository cache and install the erlang
package.
sudo apt-get update
sudo apt-get install erlang