[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Building LuaRocks Binary for Windows?
From:       Russell Haley <russ.haley () gmail ! com>
Date:       2019-12-20 6:22:57
Message-ID: CABx9NuQmFCLbcpoPx2jwYhPAohbRg-xYGUNe+1k=H3C=yUAkfg () mail ! gmail ! com
[Download RAW message or body]

Hi,

Title says it all. I tried building LuaRocks in msys2 with mingw but got a
weird error (I also get a similar error when running Luarocks from IN
msys2):

russh@LAYNE MINGW64 /c/Users/russh/git/luarocks
$ make binary
(unset ; \
"/usr/local/bin/lua" binary/all_in_one "src/bin/luarocks" "/usr/local"
"^src/luarocks/admin/" "/usr/local/etc/luarocks" "build-binary" "" unix cc
 )
/usr/local/bin/lua: ./src/luarocks/fs/tools.lua:54: 'popen' not supported
stack traceback:
        [C]: in function 'io.popen'
        ./src/luarocks/fs/tools.lua:54: in function
'luarocks.fs.current_dir'
        ./src/luarocks/fs/tools.lua:105: in function
'luarocks.fs.execute_string'
        (...tail calls...)
        ./src/luarocks/fs/unix/tools.lua:26: in function
'luarocks.fs.make_dir'
        binary/all_in_one:444: in local 'main'
        binary/all_in_one:486: in main chunk
        [C]: in ?
make: *** [GNUmakefile:95: build-binary/luarocks.exe] Error 1

For a second attempt I installed mingw-w64 on a recent debian VM (pureos)
but I don't know how to configure luarocks to target Windows on Linux?

I tried `nmake binary` but it just says the target is up to date.

Does anyone have any hints? I'd love an rtfm link?

Regards,
Russell

[Attachment #3 (text/html)]

<div dir="ltr">Hi,<br><div><br></div><div>Title says it all. I tried building \
LuaRocks in msys2 with mingw but got a weird  error (I also get a similar error when \
running Luarocks from IN msys2):</div><div><br></div><div>russh@LAYNE MINGW64 \
/c/Users/russh/git/luarocks<br>$ make binary<br>(unset ; \
\<br>&quot;/usr/local/bin/lua&quot; binary/all_in_one &quot;src/bin/luarocks&quot; \
&quot;/usr/local&quot; &quot;^src/luarocks/admin/&quot; \
&quot;/usr/local/etc/luarocks&quot; &quot;build-binary&quot; &quot;&quot; unix cc   \
)<br>/usr/local/bin/lua: ./src/luarocks/fs/tools.lua:54: &#39;popen&#39; not \
supported<br>stack traceback:<br>            [C]: in function &#39;io.popen&#39;<br>  \
./src/luarocks/fs/tools.lua:54: in function &#39;luarocks.fs.current_dir&#39;<br>     \
./src/luarocks/fs/tools.lua:105: in function &#39;luarocks.fs.execute_string&#39;<br> \
(...tail calls...)<br>            ./src/luarocks/fs/unix/tools.lua:26: in function \
&#39;luarocks.fs.make_dir&#39;<br>            binary/all_in_one:444: in local \
&#39;main&#39;<br>            binary/all_in_one:486: in main chunk<br>            \
[C]: in ?<br>make: *** [GNUmakefile:95: build-binary/luarocks.exe] Error \
1<br><br></div><div>For a second attempt I installed mingw-w64 on a recent debian VM \
(pureos) but I don&#39;t know how to configure luarocks to target Windows on \
Linux?</div><div><br></div><div>I tried `nmake binary` but it just says the target is \
up to date.</div><div><br></div><div>Does anyone have any hints? I&#39;d love an rtfm \
link?</div><div><br></div><div>Regards,</div><div>Russell</div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic