Installing Erlang by source

From Notes_Wiki
Revision as of 09:17, 9 April 2024 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Erlang > Erlang installation > Installing Erlang by source

Install 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().


Install man pages

  1. Install man pages using:
    mkdir man
    tar xzf otp_doc_man_*.tar.gz -C man
    sudo mv man/man /usr/local/lib/erlang
    rmdir man
  2. Test by opening
    erl -man erlang
    erl -man lists

Install yaws web server

  1. Download zip source file from https://github.com/erlyaws/yaws
  2. Install pam-devel files using:
    dnf -y install pam-devel
  3. Extract the zip file and build configure via
    autoreconf -fi
    Step mentioned in README.md
  4. Configure, compile and install via:
    ./configure; make; make install
    Fails with yaws-2.1.1 with erlang/OTP 26 as time of this writing on 30th July 2023 with:
    compile: warnings being treated as errors
    yaws_config.erl:3563:20: file:pid2name/1 is deprecated and will be removed in OTP 27; this functionality is no longer supported
    % 3563|     {ok, Config} = file:pid2name(FD),
    %     |                    ^
    
    yaws_config.erl:3579:20: file:pid2name/1 is deprecated and will be removed in OTP 27; this functionality is no longer supported
    % 3579|     {ok, Config} = file:pid2name(FD),
    %     |                    ^
    
    make[1]: *** [Makefile:661: ../ebin/yaws_config.beam] Error 1


Home > Erlang > Erlang installation > Installing Erlang by source