Hacker News new | ask | show | jobs
by fritzy 3620 days ago
Step one: Enable Linux Subsystem for Windows

Step two: Install "Bash for Windows aka Ubuntu root"

Step three: compile as normal

1 comments

"The Windows Subsystem for Linux (WSL) is a new Windows 10 feature"

whereas with the solution here presented (and with the binaries provided on the GitHub):

"At the end you will have standalone Lua distribution for Windows which:

- runs on Windows 7, 8, 8.1, 10 ... 32/64 bit (if you can run it on XP let me know :)

- doesn't require from its user to install any additional libraries, runtimes, frameworks into his operating system to run correctly

- you can distribute to your friends, collegues or clients with your scripts as a zip archive

- you can take with you on USB key"

It's supercool, something that has been missing.

I've tested it, if the whole zip is unpacked to d:\t

Then in any directory on Windows where the test.lua is I can just invoke

    d:\t\lua_ok\bin\lua.exe test.lua
and everything works, even without any environment variables!

Great work. And to use this occasion, is73, thanks a lot! Consider making a paypal donation page for you. Wow, now I see, you also make a portable PHP 7.