とりあえずHello

$ sudo port install erlang
Password:
--->  Fetching gawk
--->  Attempting to fetch gawk-3.1.6.tar.bz2 from ftp://ftp.dti.ad.jp/pub/GNU/gawk
--->  Verifying checksum(s) for gawk
--->  Extracting gawk
--->  Configuring gawk
--->  Building gawk
--->  Staging gawk into destroot
--->  Installing gawk @3.1.6_0
--->  Activating gawk @3.1.6_0
--->  Cleaning gawk
--->  Fetching erlang
--->  Attempting to fetch otp_src_R12B-5.tar.gz from http://distfiles.macports.org/erlang
--->  Attempting to fetch otp_doc_man_R12B-5.tar.gz from http://distfiles.macports.org/erlang
--->  Attempting to fetch otp_doc_html_R12B-5.tar.gz from http://distfiles.macports.org/erlang
--->  Verifying checksum(s) for erlang
--->  Extracting erlang
--->  Applying patches to erlang
--->  Configuring erlang
--->  Building erlang
--->  Staging erlang into destroot
--->  Installing erlang @R12B-5_1
--->  Activating erlang @R12B-5_1
--->  Cleaning erlang
$ erl
Erlang (BEAM) emulator version 5.6.5 [source] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.6.5  (abort with ^G)
1> X=1.
1
2> X.
1
3> X=2.
** exception error: no match of right hand side value 2
4> $H.
72
5> $e.
101
6> $l.
108
7> $o.
111
8> [72, 101, 108, 108, 111]
8> .
"Hello"
9>