erlang安装指引

tags: erlang linux

erlang安装指引

安装erlang所依赖的库

sudo apt-get build-dep erlang

安装基础开发工具

sudo apt-get install build-essential
sudo apt-get install libncurses5-dev

crypto依赖

sudo apt-get install libssl-dev 

wxWidgets依赖

sudo apt-get install freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev libwxgtk2.8-dev libpng3

jinterface依赖

sudo apt-get install default-jdk

C++支持

sudo apt-get install g++

旧图形工具(appmon, pman等)依赖

sudo apt-get install tk8.5   

使用kerl安装更方便, 且能支持多个版本

安装R15B版本

curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl
chmod a+x kerl
sudo mv kerl /usr/local/bin/
KERL_CONFIGURE_OPTIONS=--enable-hipe kerl build R15B r15b
kerl install r15b ~/erls/R15B

再安装18.0版本

KERL_CONFIGURE_OPTIONS=--enable-hipe kerl build 18.0 18.0
kerl install 18.0 ~/erls/18.0

将以下代码加入.bashrc以便切换版本

. ~/erls/R15B/activate
alias erl15='source /home/chenduo/erls/R15B/activate'  
alias erl18='source /home/chenduo/erls/18.0/activate'    

参考链接:

otp安装wiki
ubuntu下erlang源代码的编译与安装
kerl的github

posted on 2015-07-15 18:42  suexcxine  阅读(441)  评论(0编辑  收藏  举报