Installing Erlang by source

From Notes_Wiki
Revision as of 06:14, 10 November 2012 by Saurabh (talk | contribs)

Installing Erlang by source

We can install Erlang on CentOS using 'yum install erlang' when all popular repositories are configured. However if we want latest version of Erlang then we need to install from source. To install erlang from source we can use following steps:

  1. Download Erlang source code and man pages.
  2. Extract source (tar xzf otp_src_*.tar.gz)
  3. Run './configure; make; sudo make install'
  4. Optionally remove extracted source directory
  5. mkdir man
  6. tar xzf otp_doc_man_*.tar.gz -C man
  7. sudo mv man/man /usr/local/lib/erlang
  8. rm man -rf
  9. Test whether man pages and erlang both are working with 'erl -man erl command.