• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Windows lua.exe: error while loading shared libraries: lua54.dll: cannot open shared object file: No such file or directory (1 Viewer)

MianQi

Newcomer
Joined
Feb 3, 2022
Messages
1
Reaction score
0
I downloaded lua-5.4.4.tar.gz here - Lua: download area, the I made a "lua" directory under C: on Windows 10, then I opened MinGW and extracted it, so I had a folder "lua-5.4.4". Then I typed"make PLAT=mingw" and "make install", they all ran correctly, I mean no error prompted. Then I got 2 files in folder "/usr/local/bin" - lua.exe and luac.exe.

When I typed "luac", it shown:
E:\msys64\usr\local\bin\luac.exe: no input files given
usage: E:\msys64\usr\local\bin\luac.exe [options] [filenames]
Available options are:
-l list (use -l -l for full listing)
-o name output to file 'name' (default is "luac.out")
-p parse only
-s strip debug information
-v show version information
-- stop handling options
- stop handling options and process stdin

When I typed "lua", it shown:
E:/msys64/usr/local/bin/lua.exe: error while loading shared libraries: lua54.dll: cannot open shared object file: No such file or directory

I found page 18 of this document ( Chapter 1 of the book Beginning Lua Programming - Lua: FAQ - 1.2 – How do I build Lua in Windows and other systems?) - "The batch script generates three files: lua.exe, luac.exe, and lua5.1.dll", so the matter would be I haven't get the 3rd file in my upper procession? How to fix it?
 
Top