Difference between revisions of "Installing Erlang by source"

From Notes_Wiki
m
m
Line 1: Line 1:
<yambe:breadcrumb>Erlang installation</yambe:breadcrumb>
<yambe:breadcrumb self="Installing Erlang by source">Erlang installation|Erlang installation</yambe:breadcrumb>
=Installing Erlang by source=
=Installing Erlang by source=


Line 13: Line 13:
#<tt>rm man -rf</tt>
#<tt>rm man -rf</tt>
#Test whether man pages and erlang both are working with '<tt>erl -man erl</tt> command.
#Test whether man pages and erlang both are working with '<tt>erl -man erl</tt> command.
<yambe:breadcrumb self="Installing Erlang by source">Erlang installation|Erlang installation</yambe:breadcrumb>

Revision as of 05:36, 18 September 2018

<yambe:breadcrumb self="Installing Erlang by source">Erlang installation|Erlang installation</yambe:breadcrumb>

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. Use 'yum -y install wxGTK wxGTK-devel gcc ncurses-devel openssl-libs openssl-devel java java-1.8.0-openjdk-devel fop gcc-c++ byacc bison unixODBC unixODBC-devel'
  2. Download Erlang source code and man pages.
  3. Extract source (tar xzf otp_src_*.tar.gz)
  4. Run './configure; make; sudo make install'
  5. Optionally remove extracted source directory
  6. mkdir man
  7. tar xzf otp_doc_man_*.tar.gz -C man
  8. sudo mv man/man /usr/local/lib/erlang
  9. rm man -rf
  10. Test whether man pages and erlang both are working with 'erl -man erl command.


<yambe:breadcrumb self="Installing Erlang by source">Erlang installation|Erlang installation</yambe:breadcrumb>