Installing Erlang by source
From Notes_Wiki
Home > Erlang > Erlang installation > Installing Erlang by source
Install erlang by source
- Download the source and latest man packages from Erlang sites
- 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
- Extract the sources and install via:\
- ./configure; make; make install
- Ignore warning related to wxwidgets and fop
- Test by opening
- erl
- q().
Install man pages
- 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
- Test by opening
- erl -man erlang
- erl -man lists
Install yaws web server
- Download zip source file from https://github.com/erlyaws/yaws
- Install pam-devel files using:
- dnf -y install pam-devel
- Extract the zip file and build configure via
- autoreconf -fi
- Step mentioned in README.md
- 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