我需要稍微调整OTP以满足自己的需求,因此必须从本地文件夹构建它。 跑完后:
./otp_build autoconf
./configure
make
sudo make install
一切看起来都很好。但不幸的是,由于某种原因,我不能再编译任何文件了。例如。
oleg@castle:~/Repos/erlang_book$ erlc chapter03.erl
chapter03.erl: internal error in parse_module; crash reason: undef
in function epp:parse_file/2
called as epp:parse_file("chapter03.erl", [{includes,[".","."]},{macros,[]},{default_encoding,utf8},extra])
in call from compile:do_parse_module/2 (compile.erl, line 815)
in call from compile:parse_module/1 (compile.erl, line 798)
in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 292)
in call from compile:fold_comp/3 (compile.erl, line 310)
in call from compile:internal_comp/4 (compile.erl, line 294)
in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 153)