Skip to content
This repository has been archived by the owner on Aug 8, 2022. It is now read-only.

chef-base-plans/erlang19

Repository files navigation

Build Status

erlang19

Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. See documentation

Maintainers

Type of Package

Binary package

Use as Dependency

Binary packages can be set as runtime or build time dependencies. See Defining your dependencies for more information.

To add core/erlang19 as a dependency, you can add one of the following to your plan file.

Buildtime Dependency

pkg_build_deps=(core/erlang19)

Runtime dependency

pkg_deps=(core/erlang19)

Use as Tool

Installation

To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.

hab pkg install core/erlang19 --binlink

will add the following binaries to the PATH:

  • /bin/ct_run
  • /bin/dialyzer
  • /bin/epmd
  • /bin/erl
  • /bin/erlc
  • /bin/escript
  • /bin/run_erl
  • /bin/to_erl
  • /bin/typer

For example:

$ hab pkg install core/erlang19 --binlink
» Installing core/erlang19
☁ Determining latest version of core/erlang19 in the 'stable' channel
→ Found newer installed version (core/erlang19/19.3/20200903162531) than remote version (core/erlang19/19.3/20200403235334)
→ Using core/erlang19/19.3/20200903162531
★ Install of core/erlang19/19.3/20200903162531 complete with 0 new packages installed.
» Binlinking typer from core/erlang19/19.3/20200903162531 into /bin
★ Binlinked typer from core/erlang19/19.3/20200903162531 to /bin/typer
» Binlinking to_erl from core/erlang19/19.3/20200903162531 into /bin
★ Binlinked to_erl from core/erlang19/19.3/20200903162531 to /bin/to_erl
» Binlinking ct_run from core/erlang19/19.3/20200903162531 into /bin
★ Binlinked ct_run from core/erlang19/19.3/20200903162531 to /bin/ct_run
» Binlinking erl from core/erlang19/19.3/20200903162531 into /bin
★ Binlinked erl from core/erlang19/19.3/20200903162531 to /bin/erl
» Binlinking escript from core/erlang19/19.3/20200903162531 into /bin
★ Binlinked escript from core/erlang19/19.3/20200903162531 to /bin/escript
» Binlinking run_erl from core/erlang19/19.3/20200903162531 into /bin
★ Binlinked run_erl from core/erlang19/19.3/20200903162531 to /bin/run_erl
» Binlinking epmd from core/erlang19/19.3/20200903162531 into /bin
★ Binlinked epmd from core/erlang19/19.3/20200903162531 to /bin/epmd
» Binlinking dialyzer from core/erlang19/19.3/20200903162531 into /bin
★ Binlinked dialyzer from core/erlang19/19.3/20200903162531 to /bin/dialyzer
» Binlinking erlc from core/erlang19/19.3/20200903162531 into /bin
★ Binlinked erlc from core/erlang19/19.3/20200903162531 to /bin/erlc

Using an example binary

You can now use the binary as normal. For example, save the following erlang script and call it hello:

#!/usr/bin/env escript
-export([main/1]).
main([]) -> io:format("Hello, World!~n").

Then do the following:

/bin/escript hello or escript hello

$ escript hello
Hello, World!