Last post was about building Erlang B13R04 in Ubuntu. For CentOS, it’s somehow the same with yum
sudo yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
wget http://www.erlang.org/download/otp_src_R13B04.tar.gz
tar xfvz otp_src_R13B04.tar.gz
cd otp_src_R13B04/
./configure --with-ssl
sudo make install
However, I haven’t found the similar package to xsltproc and fop yet. But it’s only for building the documentation which I don’t really need.
Trung Installation build, centos, erlang, OTP, r13b04
Frankly speaking, I always use apt-get to install Erlang rather than building from source… lazy huh? Unfortunately, when I apt-get in Ubuntu 9.10 Karmic, only Erlang/OTP R13B01 (5.7.2) is available whereas the latest is R13B04 (5.7.5) which is required to build Riak (actually rebar requires 5.7.4 and above)…
It takes around 10-15 min to build, and these are the required libraries and dependencies
sudo apt-get install build-essential m4 libncurses5-dev libssl-dev xsltproc fop
axel -n 20 http://www.erlang.org/download/otp_src_R13B04.tar.gz
tar xfvz otp_src_R13B04.tar.gz
cd otp_src_R13B04/
./configure --with-ssl
sudo make install
Here i’m using axel for fast download, it’s your choice to use curl or wget.
Trung Installation build, erlang, karmic, OTP, rebar, riak, ubuntu