2010-06-22 21 views
9

Esiste un modo consigliato di eseguire il "bootstrap" di una distribuzione Erlang? Mi piacerebbe eseguire l'erlang sul gruppo di macchine in cui non ho l'elevazione della radice né il set di strumenti di sviluppo (nessun compilatore ecc ...). Il mio pensiero era di pre-confezionare (sulla macchina con la stessa architettura) il più possibile. Quali sono i requisiti minimi per un ambiente Erlang utilizzabile?erlang portatile

risposta

4

È possibile utilizzare i diversi strumenti erlware. Usando l'ultima Sinan, puoi persino creare una versione standalone con gli er in bundle.

1

Ad esempio, è possibile consultare Wing3D.

CouchDB è un altro esempio. (Credit per tbikeev.)

+1

Immagino che un altro esempio potrebbe essere la distro CouchDB ... – tbikeev

2

Ok, avrei dovuto leggere prima di ... (da 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