2010-06-22 149 views
9

有没有推荐的方法来“引导”一个Erlang分布?我想在一堆没有root提升和开发工具集的机器上运行erlang(没有编译器等)。我的想法是预先包装(在具有相同架构的机器上)尽可能多地进行包装。什么是可用的Erlang环境的最低要求?便携式erlang

回答

4

可以使用不同的erlware工具。使用最新的思南,你甚至可以创建一个捆绑erts的独立版本。

1

例如,您可以查看Wing3D

CouchDB是另一个例子。 (感谢tbikeev。)

+1

我想另一个例子可能是CouchDB发行版... – tbikeev 2010-06-22 12:11:16

2

好吧,我以前读它......(从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