开发者

Portable erlang

开发者 https://www.devze.com 2023-01-04 12:59 出处:网络
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 c

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?


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


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


You can look at Wing3D for example.

CouchDB is another example. (Credit to tbikeev.)

0

精彩评论

暂无评论...
验证码 换一张
取 消