Difference between revisions of "Installing Erlang by source"
From Notes_Wiki
m |
m |
||
Line 1: | Line 1: | ||
<yambe:breadcrumb>Erlang installation</yambe:breadcrumb> | |||
=Installing Erlang by source= | =Installing Erlang by source= | ||
Revision as of 08:42, 4 August 2016
<yambe:breadcrumb>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:
- 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'
- Download Erlang source code and man pages.
- Extract source (tar xzf otp_src_*.tar.gz)
- Run './configure; make; sudo make install'
- Optionally remove extracted source directory
- mkdir man
- tar xzf otp_doc_man_*.tar.gz -C man
- sudo mv man/man /usr/local/lib/erlang
- rm man -rf
- Test whether man pages and erlang both are working with 'erl -man erl command.