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
Well, it depends on what OS you are running. Saying that, I mean NOT building the source code.
Windows
Just download the binaries from Erlang website and run the exe file
Linux
apt-get is your friend, just do sudo apt-get install erlang.
Mac OSX
I installed MacPorts and did sudo port install erlang, and it works!
Solaris
This is a bit tricky as I can’t find any official Sun package for Erlang, you have to either compile from source or follow these instructions:
- Determine Solaris version and machine type (sparx or i386)
uname -a
- Go to the corresponding folder in http://www.iforceready.it/pub/csw/stable , or other mirrors
- Download the following packages
- common
- ncurses
- libiconv
- readline
- unixodbc
- openssl_rt
- openssl_devel
- openssl_utils
- openssl
- erlang
- Unzip and install them in the above order
sudo pkgadd -d <<package name >>
- And the path to erl is
/opt/csw/bin
Trung Installation install, linux, macosx, setup, solaris, windows