2010-06-22 12 views
9

¿Hay alguna manera recomendada de "arrancar" una distribución de Erlang? Me gustaría ejecutar erlang en el conjunto de máquinas en las que no tengo elevación de raíz ni conjunto de herramientas de desarrollo (no compiladores, etc.). Mi idea era pre-empaquetar (en la máquina con la misma arquitectura) tanto como pueda antes. ¿Cuáles son los requisitos mínimos para un entorno Erlang utilizable?Erlang portátil

Respuesta

4

Puede utilizar las diferentes herramientas erlware. Usando el último Sinan, incluso puedes crear una versión independiente con los paquetes incluidos.

1

Puede mirar Wing3D por ejemplo.

CouchDB es otro ejemplo. (Crédito a tbikeev.)

+1

Supongo que otro ejemplo podría ser la distribución de CouchDB ... – tbikeev

2

Ok, yo debería haber leído antes ... (de 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