Tuesday, July 03, 2012

Installing Erlang from the sources on CentOS 6


# enable EPEL
su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm'

# go to http://www.erlang.org/download.html and select the latest source code archive
wget http://www.erlang.org/download/otp_src_R15B01.tar.gz

#uncompress
tar -xvf otp_src_R15B01.tar.gz

#install everything we need to compile the sources
sudo yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel

#go to that folder
cd otp_src_R15B01

#configure, make and install
./configure --with-ssl
sudo make install

#create a symbolic link
sudo ln -s /usr/local/bin/erl /bin/erl

No comments: