2013-08-04 53 views
0

我正在尝试构建此(https://github.com/dch/rebar/)螺纹钢。无法在Windows7上构建螺纹钢


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}]}]}} 
+0

错误报告可能更合适... – filmor

回答

1

我没有二郎相同版本的,你(re.erl线154不可拆分功能),所以我不能完成分析。但是你可以尝试从窗口到函数os:getenv()的结尾处理解这些怪异字符的来源[1055,1050]。看来它崩溃了:分裂。

+0

错误发生在下一行:'Os = [list_to_tuple(re:split(S,“=”,[{return,list},{parts,2} ]))|| S < - os:getenv()]',但在basho rebar中,相同的字符串看起来像'Os = [list_to_tuple(re:split(S,“=”,ReOpts))|| S < - os:getenv()],'。问题可以在那里吗? – Alexander

+0

basho钢筋上面的行定义ReOpts为ReOpts = [{return,list},{parts,2},unicode]。 unicode元素可能很重要,特别要处理我在答案中提到的角色。 – Pascal

+1

这是在basho/rebar上次提交时的修正(61c353dcfdafb87107cc5472709d229c26a8cb6c) – Pascal