可以在Windows 7上构建螺纹钢

时间:2013-08-04 14:22:50

标签: windows erlang rebar

我正在尝试构建这个(https://github.com/dch/rebar/)钢筋。


C:\Projects\rebar>bootstrap
Recompile: src/rebar_core
==> rebar (compile)
Uncaught error in rebar_core: {'EXIT',
                               {badarg,
                                [{re,split,
                                  [[85,83,69,82,68,79,77,65,73,78,61,65,108,
                                    101,120,45,1055,1050],
                                   "=",
                                   [{return,list},{parts,2}]],
                                  [{file,"re.erl"},{line,154}]},
                                 {rebar_port_compiler,'-os_env/0-lc$^0/1-0-',
                                  1,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,371}]},
                                 {rebar_port_compiler,'-os_env/0-lc$^0/1-0-',
                                  1,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,372}]},
                                 {rebar_port_compiler,os_env,0,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,371}]},
                                 {rebar_port_compiler,setup_env,1,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,150}]},
                                 {rebar_core,'-setup_envs/2-lc$^0/1-0-',2,
                                  [{file,"src/rebar_core.erl"},{line,364}]},
                                 {rebar_core,'-setup_envs/2-lc$^0/1-0-',2,
                                  [{file,"src/rebar_core.erl"},{line,365}]},
                                 {rebar_core,setup_envs,2,
                                  [{file,"src/rebar_core.erl"},{line,364}]}]}}

1 个答案:

答案 0 :(得分:1)

我没有和你一样的erlang版本(re.erl的第154行不是拆分功能)所以我无法完成分析。但你可以尝试从windows到函数os:getenv()的答案结尾处理解这些奇怪的字符[1055,1050]。它似乎崩溃了:拆分。