Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Portable erlang

Is there a recommended way to "bootstrap" an Erlang distribution? I would like to run erlang on the bunch of machines where I do not have root elevation nor development tool-set (no compilers etc ...) . My thinking was to pre-package (on the machine with the same architecture) as much as I can before. What are the minimal requirements for an usable Erlang environment?

like image 635
tbikeev Avatar asked Jun 22 '10 09:06

tbikeev


People also ask

What Erlang is used for?

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.

Is Erlang free?

Erlang is used in several large telecommunication systems from Ericsson. Erlang is available as open source from http://www.erlang.org.

What is Erlang OTP used for?

Erlang is a general-purpose programming language with built-in support for concurrency, distribution and fault tolerance. OTP (Open Telecom Platform) is aimed at providing time-saving and flexible development for robust, adaptable telecom systems.

How do I install Erlang on Windows without admin rights?

You can copy erl.exe (plus the runtime system and all the libraries you need) from another installation and run it without the need to install. As long as you are allowed to execute files it should be okay.


2 Answers

You can use the different erlware tools. Using the latest Sinan, you can even create a standalone release with the erts bundled.

like image 137
jvliwanag Avatar answered Nov 16 '22 00:11

jvliwanag


Ok, I should have read it before ... (from INSTALL.md)

 *   Install using the `release` target. Instead of doing `make install` you
  can create the installation in whatever directory you like using the
  `release` target and run the `Install` script yourself. `RELEASE_ROOT`
  is used for specifying the directory where the installation should be
  created. This is what by default ends up under `/usr/local/lib/erlang`
  if you do the install using `make install`. All installation paths
  provided in the `configure` phase are ignored, as well as `DESTDIR`,
  and `INSTALL_PREFIX`. If you want links from a specific `bin` directory
  to the installation you have to set those up yourself. An example where
  Erlang/OTP should be located at `/home/me/OTP`:

      $ ./configure
      $ make
      $ make RELEASE_ROOT=/home/me/OTP release
      $ cd /home/me/OTP
      $ ./Install -minimal /home/me/OTP
      $ mkdir -p /home/me/bin
      $ cd /home/me/bin
      $ ln -s /home/me/OTP/bin/erl erl
      $ ln -s /home/me/OTP/bin/erlc erlc
      $ ln -s /home/me/OTP/bin/escript escript
like image 29
tbikeev Avatar answered Nov 16 '22 01:11

tbikeev