2013-08-04 55 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