lua 5.3 module

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

lua 5.3 module

Михайло Галушка
Hello, this situation, decided to make a collection of Lua 5.3.3
MinGW compiler, All Coll, but the module is not possible to tie, I set luarocks 2.4.1, example:
F:\Program Files\lua533\bin>lua luasock.lua
lua: luasock.lua:2: module 'socket' not found:
        no field package.preload['socket']
        no file 'F:\Program Files\lua533\bin\lua\socket.luac'
        no file 'F:\Program Files\lua533\lib\lua\5.3'
stack traceback:
        [C]: in function 'require'
        luasock.lua:2: in main chunk
        [C]: in ?
F:\Program Files\lua533\bin>ec
'ec' is not recognized as an internal or external command,
operable program or batch file.
F:\Program Files\lua533\bin>echo %LUA_CPATH%
F:\Program Files\lua533\lib\lua\5.3;
F:\Program Files\lua533\bin>echo %LUA_PATH%
F:\Program Files\lua533\bin\lua\?.luac

luasotsket compiled, want tsvoryty modern collection of Lua 5.3
Can someone is already ready?
Windovs 10 OS x64
thanks

--
relab2500.blogspot.com 
Мій блог
Reply | Threaded
Open this post in threaded view
|

Re: lua 5.3 module

Ulrich Schmidt
Hi.

1: Please think about using tdm-gcc[1] on windows32/64 instead mingw-gcc.
   I have the strong feeling, mingw is not well maintained and outdated.
2: You may give my maketool[2] a try. It comes with example makefiles, that
   compiles luajit, lua52, lua53, a minimal iuplua, lanes, lfs, lpeg,
   lsqlite, luasocket, penlight and winapi.
   You need a "svn.exe" command line tool to checkout and update module
   sources. (I use svn.exe provided by tortoisesvn[3])
   You can build 32 or 64 bit executables.
   The tools in luaRUN subfolder can be used to create self contained lua
   executables using statically linked libs or dynamically linked libs.
   I created this project for my personal needs. Its not perfect nor complete
   but it works and it is up to date.
   I run the make process about once a week to pull updates and compile.

best wishes.
Ulrich.

[1]: https://tdm-gcc.tdragon.net/
[2]: https://github.com/Fuzzlix/omm
[3]: https://tortoisesvn.net/

Am 26.11.2016 um 10:58 schrieb Михайло Галушка:

> Hello, this situation, decided to make a collection of Lua 5.3.3
> MinGW compiler, All Coll, but the module is not possible to tie, I set
> luarocks 2.4.1, example:
>
>     F:\Program Files\lua533\bin>lua luasock.lua
>     lua: luasock.lua:2: module 'socket' not found:
>             no field package.preload['socket']
>             no file 'F:\Program Files\lua533\bin\lua\socket.luac'
>             no file 'F:\Program Files\lua533\lib\lua\5.3'
>     stack traceback:
>             [C]: in function 'require'
>             luasock.lua:2: in main chunk
>             [C]: in ?
>     F:\Program Files\lua533\bin>ec
>     'ec' is not recognized as an internal or external command,
>     operable program or batch file.
>     F:\Program Files\lua533\bin>echo %LUA_CPATH%
>     F:\Program Files\lua533\lib\lua\5.3;
>     F:\Program Files\lua533\bin>echo %LUA_PATH%
>     F:\Program Files\lua533\bin\lua\?.luac
>
>
> luasotsket compiled, want tsvoryty modern collection of Lua 5.3
> Can someone is already ready?
> Windovs 10 OS x64
> thanks
>
> --
> relab2500.blogspot.com <http://relab2500.blogspot.com>
> Мій блог

Reply | Threaded
Open this post in threaded view
|

Re: lua 5.3 module

Bulat Ziganshin
Hello Ulrich,

Saturday, November 26, 2016, 1:31:43 PM, you wrote:

> 1: Please think about using tdm-gcc[1] on windows32/64 instead mingw-gcc.
>    I have the strong feeling, mingw is not well maintained and outdated.
> [1]: https://tdm-gcc.tdragon.net/

for me, https doesn't work on their site, although http is fine. their
last version is 5.1, though. instead, you can get gcc 6.x versions from:

https://sourceforge.net/projects/mingw-w64/
https://nuwen.net/mingw.html




--
Best regards,
 Bulat                            mailto:[hidden email]