【发布时间】:2016-09-23 15:15:51
【问题描述】:
我使用 erlang.org 安装了 erlang
wget http://erlang.org/download/otp_src_R16B03.tar.gz
可以看到erlang安装成功了。但是,我无法使用 erlc 命令,例如,
ercl file.erl
{"init terminating in do_boot",{undef,[{erl_compile,compile_cmdline,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
另外,我尝试为这个新安装创建一个符号链接。
which erl
/usr/local/bin/erl
ls -al /usr/local/bin/erl
lrwxr-xr-x 1 sad admin 45 May 25 12:00 /usr/local/bin/erl -> /Users/sad/erlang/otp_src_R16B03/bin/erl
如果有什么我遗漏的请帮忙
【问题讨论】:
-
尝试使用
erl启动Erlang,然后在shell 中输入l(erl_compile).,然后输入erl_compile:module_info().,如果您遇到任何错误,请发布。
标签: macos installation erlang erlang-otp erl