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]] | ||
=Install erlang by source= | |||
# Download the source and latest man packages from Erlang sites | # Download the source and latest man packages from Erlang sites | ||
#:* https://www.erlang.org/downloads | #:* https://www.erlang.org/downloads | ||
Line 18: | Line 19: | ||
#:: q(). | #:: q(). | ||
#:</pre> | #:</pre> | ||
=Install man pages= | |||
# Install man pages using: | |||
#:<pre> | |||
#:: mkdir man | |||
#:: tar xzf otp_doc_man_*.tar.gz -C man | |||
#:: sudo mv man/man /usr/local/lib/erlang | |||
#:: rmdir man | |||
#:</pre> | |||
# Test by opening | |||
#:<pre> | |||
#:: erl -man erlang | |||
#:: erl -man lists | |||
#:</pre> | |||
=Install yaws web server= | |||
# Download zip source file from https://github.com/erlyaws/yaws | |||
# Install pam-devel files using: | |||
#:<pre> | |||
#:: dnf -y install pam-devel | |||
#:</pre> | |||
# Extract the zip file and build configure via | |||
#:<pre> | |||
#:: autoreconf -fi | |||
#:</pre> | |||
#: Step mentioned in README.md | |||
# Configure, compile and install via: | |||
#:<pre> | |||
#:: ./configure; make; make install | |||
#:</pre> | |||
#: Fails with yaws-2.1.1 with erlang/OTP 26 as time of this writing on 30th July 2023 with: <source type="shell"> | |||
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 | |||
</source> | |||
[[Main_Page|Home]] > [[Erlang]] > [[Erlang installation]] > [[Installing Erlang by source]] | [[Main_Page|Home]] > [[Erlang]] > [[Erlang installation]] > [[Installing Erlang by source]] |
Latest revision as of 09:17, 9 April 2024
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