Installation dependency environment
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel
download Erlang
wget http://erlang.org/download/otp_src_21.3.tar.gz
decompression
tar -xvzf otp_src_21.3.tar.gz
Enter the ERLANG directory after decompression
cd otp_src_21.3
Construction
./otp_build autoponf
If ./otp_build: Line 319: AutoConf: Command Not Found, you need yum install -y autoconf
Configuration installation
./configure
make
make install
Configuration environment variables
vim /etc/profile
Add to the end
export ERLANG_HOME=/usr/local/lib/erlang
export PATH=$PATH:$ERLANG_HOME/bin
Re -load environment variables
source /etc/profile
View
erl -version