Difference between revisions of "Installing Erlang by source"

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


We can install Erlang on CentOS using '<tt>yum install erlang</tt>' 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:
We can install Erlang on CentOS using '<tt>yum install erlang</tt>' 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:
Line 16: Line 15:




<yambe:breadcrumb self="Installing Erlang by source">Erlang installation|Erlang installation</yambe:breadcrumb>
[[Main_Page|Home]] > [[Erlang]] > [[Erlang installation]] > [[Installing Erlang by source]]

Revision as of 13:46, 7 April 2022

Home > Erlang > Erlang installation > 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.


Home > Erlang > Erlang installation > Installing Erlang by source