1. michilu
  2. my

Source

my / doc / erlang.rst

Erlang

Installing Erlang

Mac OS X:

$ ./configure --enable-threads --enable-kernel-poll --enable-smp-support --enable-darwin-64bit --disable-hipe
$ make
$ sudo make install
...
$ erl
Erlang (BEAM) emulator version 5.6.3 [source] [64-bit] [smp:2] [async-threads:0] [kernel-poll:false]

CentOS 5.2 i386 on VMware Fusion:

$ ./configure --enable-threads --enable-kernel-poll
...
configure: error: No curses library functions found
...
$ sudo yum install ncurses-devel
...
$ ./configure --enable-threads --enable-kernel-poll
...
$ erl
Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0] [hipe] [kernel-poll:false]

CentOS 5.2 x86 64-bit on VMware Fusion:

$ ./configure --enable-threads --enable-kernel-poll --enable-smp-support
...
$ erl
Erlang (BEAM) emulator version 5.6.3 [source] [64-bit] [smp:2] [async-threads:0] [hipe] [kernel-poll:false]

building Persistent Lookup Table (PLT)

dialyzerで必要なpltファイルを作る。:

$ dialyzer --build_plt -r $ERL_TOP/lib/kernel/ebin $ERL_TOP/lib/stdlib/ebin $ERL_TOP/lib/mnesia/ebin
  Creating PLT ~/.dialyzer_plt ...
Unknown functions:
  compile:file/2
  compile:forms/2
  compile:noenv_forms/2
  compile:output_generated/1
  crypto:des3_cbc_decrypt/5
  crypto:start/0
 done in 17m50.35s
done (passed successfully)

$ ll ~/.dialyzer_plt
-rw-r--r-- ... 148K ... ~/.dialyzer_plt

$ dialyzer --add_to_plt -r $ERL_TOP/lib/compiler/ebin
  Adding information to ~/.dialyzer_plt...
Unknown functions:
  crypto:des3_cbc_decrypt/5
  crypto:des3_cbc_encrypt/5
  crypto:start/0
  hipe:compile/4
 done in 31m40.63s
done (passed successfully)

$ ll ~/.dialyzer_plt
-rw-r--r-- ... 179K ... ~/.dialyzer_plt

ref: file:///.../lib/dialyzer-1.8.1/doc/html/dialyzer_chapter.html#1.5