简体   繁体   中英

How to make a makefile for lua 5.1.5 on windows or get LuaSocket for lua 5.3.5?

I'm attempting to make a simple server to client communication for fun using lua. The only library i've found able to do this is luasocket, but it's only for lua 5.1, and I cant seem to find any clear instruction as to how to build the makefile for 5.1.5 on windows.

I'm currently using windows 10 and i've looked all over the place, but im brand new to this world and I dont understand what most of what I see means. I've tried following this guide ( http://lua-users.org/wiki/BuildingLuaInWindowsForNewbies ), but its for lua 5.3 and its makefile.cmd script only supports that version, and fails when trying to use lua 5.1

The error I get while trying to compile it is...

F:\gcc-lua-install\lua-5.1.5\src\*.exe
The system cannot find the file specified.
        0 file(s) copied.
F:\gcc-lua-install\lua-5.1.5\src\*.dll
The system cannot find the file specified.
        0 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
The system cannot find the file specified.

**** BINARY DISTRIBUTION BUILT ****

'F:\gcc-lua-install\lua\bin\lua.exe' is not recognized as an internal or external command,
operable program or batch file.

You can get Lua from www.lua.org

Binaries

https://sourceforge.net/projects/luabinaries/files/5.1.5/

Sources

https://www.lua.org/ftp/lua-5.1.5.tar.gz

It should also be quite simple to build luasocket for Lua 5.3. There are several resources available online that explain what to do.

Please use websearch for such trivial questions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM