Difference between revisions of "Installing Erlang by source"

From Notes_Wiki
m
m
Line 2: Line 2:


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:
#Use '<tt>yum -y install wxGTK wxGTK-devel</tt>'
#Use '<tt>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</tt>'
#Download Erlang source code and man pages.
#Download Erlang source code and man pages.
#Extract source (tar xzf otp_src_*.tar.gz)
#Extract source (tar xzf otp_src_*.tar.gz)

Revision as of 08:41, 4 August 2016

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.