Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1666104
  • 博文数量: 607
  • 博客积分: 10031
  • 博客等级: 上将
  • 技术积分: 6633
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-30 17:41
文章分类

全部博文(607)

文章存档

2011年(2)

2010年(15)

2009年(58)

2008年(172)

2007年(211)

2006年(149)

我的朋友

分类: LINUX

2008-02-18 15:37:42

ubuntu 8.04 下编译安装Erlang R12B


1. 安装依赖的软件包
sudo apt-get build-dep erlang
分析erlang依赖的安装包并一一安装 如build-essential,libncurses5-dev,m4,libssl-dev等
     (如果必要)然后要用新立得装如下库: libc6 unixodbc gcj

2. 下载源代码
wget 

3. 编译并安装到指定目录
tar -xvf otp_src_R12B-5.tar.gz
cd otp_src_R12B-5 
sudo
./configure --prefix=/opt/erlang --enable-sctp #若想使用sctp协议的话,其他开关类似
sudo make   
sudo make install

安装到/otp/erlang完毕后,可以删除源代码
rm -rf otp_src_R12B-5


4. 安装说明/帮助文档
cd /opt/erlang/lib/erlang
wget 
wget 
tar -xfvz otp_doc_html_R12B-5.tar.gz
tar -xfvz otp_doc_man_R12B-5.tar.gz
sudo rm otp_doc_html_R12B-5.tar.gz
sudo rm otp_doc_man_R12B-5.tar.gz

5. 配置环境变量
vi /etc/profile
if [ ! $ERL_HOME ]; then
    export ERL_HOME=/opt/erlang/bin
    export PATH=$ERL_HOME:$PATH
fi
alias ls='ls --color=auto'  
alias ll='ls -lht'

使profile生效
source /etc/profile

----------------------
另外,在8.04下下载R11B安装,失败(跟sctp编译不过有关)!装R12B5却OK!

阅读(1188) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~