Difference between revisions of "Installing Erlang by source"

From Notes_Wiki
m
m
Line 1: Line 1:
[[Main_Page|Home]] > [[Erlang]] > [[Erlang installation]] > [[Installing Erlang by source]]
[[Main_Page|Home]] > [[Erlang]] > [[Erlang installation]] > [[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:
# Download the source and latest man packages from Erlang sites
#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>'
#:* https://www.erlang.org/downloads
#Download Erlang source code and man pages.
#:* https://erlang.org/download/
#Extract source (tar xzf otp_src_*.tar.gz)
# Install required dependencies:
#Run '<tt>./configure; make; sudo make install</tt>'
#:<pre>
#Optionally remove extracted source directory
#:: dnf -y install gcc ncurses-devel openssl-libs openssl-devel java java-1.8.0-openjdk-devel gcc-c++ byacc bison unixODBC unixODBC-devel
#<tt>mkdir man</tt>
#:</pre>
#<tt>tar xzf otp_doc_man_*.tar.gz -C man</tt>
# Extract the sources and install via:\
#<tt>sudo mv man/man /usr/local/lib/erlang</tt>
#:<pre>
#<tt>rm man -rf</tt>
#:: ./configure; make; make install
#Test whether man pages and erlang both are working with '<tt>erl -man erl</tt> command.
#:</pre>
 
#: Ignore warning related to wxwidgets and fop
 
# Test by opening
#:<pre>
#:: erl
#:: q().
#:</pre>


[[Main_Page|Home]] > [[Erlang]] > [[Erlang installation]] > [[Installing Erlang by source]]
[[Main_Page|Home]] > [[Erlang]] > [[Erlang installation]] > [[Installing Erlang by source]]

Revision as of 09:15, 9 April 2024

Home > Erlang > Erlang installation > Installing Erlang by source

  1. Download the source and latest man packages from Erlang sites
  2. Install required dependencies:
    dnf -y install gcc ncurses-devel openssl-libs openssl-devel java java-1.8.0-openjdk-devel gcc-c++ byacc bison unixODBC unixODBC-devel
  3. Extract the sources and install via:\
    ./configure; make; make install
    Ignore warning related to wxwidgets and fop
  4. Test by opening
    erl
    q().

Home > Erlang > Erlang installation > Installing Erlang by source