Ubuntu 下 Erlang R16B 的安装


在Ubuntu 下 Erlang R16B 的安装的过程记录。

安装相关类库

# install libraries and tools 
sudo apt-get install libncurses5-dev m4 fop freeglut3-dev libwxgtk2.8-dev g++ libssl-dev xsltproc build-essential tk8.5  unixodbc unixodbc-dev libxml2-utils

下载erlang

# download source code 
wget http://erlang.org/download/otp_src_R16B.tar.gz 
tar zxvf otp_src_R16B.tar.gz 
cd otp_src_R16B/ 

编译安装

# compile and install 
./configure  --prefix=/opt/erlang 
make 
make install 

清理安装包

# clean 
cd .. 
rm -r otp_src_R16B
rm otp_src_R16B.tar.gz 

更新环境变量

vim /etc/profile

在最后一行加上

export PATH=/opt/erlang/bin:$PATH 
alias ls='ls -color=auto' 
alias ll='ll -lht'

保存退出后

source /etc/profile

命令行中输入erl看是否安装成功

备注:

编译过程中如果遇到

/bin/bash: jar: command not found  见

  • 1
  • 2
  • 下一页

相关内容