2010-06-22 2 views
9

Existe-t-il une méthode recommandée pour "amorcer" une distribution Erlang? Je voudrais courir erlang sur le tas de machines où je n'ai pas l'élévation de racine ni l'ensemble d'outils de développement (aucun compilateur etc. ...). Mon idée était de pré-emballer (sur la machine avec la même architecture) autant que possible auparavant. Quelles sont les exigences minimales pour un environnement Erlang utilisable?Erlang portable

Répondre

4

Vous pouvez utiliser les différents outils de erlware. En utilisant le dernier Sinan, vous pouvez même créer une version autonome avec le erts fourni.

1

Vous pouvez regarder Wing3D par exemple.

CouchDB est un autre exemple. (Crédit à tbikeev.)

+1

Je suppose qu'un autre exemple pourrait être CouchDB distro ... – tbikeev

2

Ok, je l'ai lu avant ... (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