1、基础软件包安装

系统版本
[root@localhost erlang]# cat /etc/redhat-release
CentOS release 6.6 (Final)

yum groupinstall "Base" "Development Tools" "Perl Support" 
装不上报错 多装两遍 一定要装上,安装完组包从新启动下虚拟机
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel  rsync perl-net-snmp wx fop  net-snmp unixODBC unixODBC-devel  vim make lrzsz bc sysstat lsof wget xz  ncurses-devel

重启一下虚拟机

2、编译安装erlang

wget http://erlang.org/download/otp_src_20.0.tar.gz
tar -xf otp_src_20.0.tar.gz -C /usr/local/src
cd /usr/local/src/
chown -R root:root *
LANG=C; export LANG
./configure --prefix=/usr/local/erlang 
make
make install
**configure 正确map结果**
*********************************************************************
**********************  APPLICATIONS DISABLED  **********************
*********************************************************************

jinterface     : No Java compiler found

*********************************************************************
*********************************************************************
**********************  APPLICATIONS INFORMATION  *******************
*********************************************************************

wx             : wxWidgets not found, wx will NOT be usable

*********************************************************************

3、环境变量配置

vim /etc/profile
#erlang path
ERL_HOME=/usr/local/erlang
export PATH=$ERL_HOME/bin:$PATH
source /etc/profile

测试为这个表示成功

[root@localhost otp_src_20.0]# erl
Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V9.0  (abort with ^G)