您的位置:首页 > 其它

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

2015-06-03 13:47 399 查看


安装相关类库

# 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  见 http://www.linuxidc.com/Linux/2013-05/84234p2.htm



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: