Last active
January 3, 2024 06:30
-
-
Save amigojapan/543b0d44f698cc03a61d7ec57ef968be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SOLVED] | |
$ cygcheck -l liblua-devel | |
/usr/include/lua5.3/lauxlib.h | |
/usr/include/lua5.3/lua.h | |
/usr/include/lua5.3/lua.hpp | |
/usr/include/lua5.3/luaconf.h | |
/usr/include/lua5.3/lualib.h | |
/usr/lib/liblua5.3.dll.a | |
/usr/lib/pkgconfig/lua5.3.pc | |
/etc/postinstall/liblua-devel.sh | |
/etc/preremove/liblua-devel.sh | |
/usr/lib/liblua-5.3.dll.a | |
/usr/lib/pkgconfig/lua-5.3.pc | |
$ luarocks | |
. | |
. | |
. | |
Configuration: | |
Lua: | |
Version : 5.3 | |
Interpreter: /usr/bin/lua5.3 (ok) | |
LUA_DIR : /usr (ok) | |
LUA_BINDIR : /usr/bin (ok) | |
LUA_INCDIR : /usr/include/lua5.3 (ok) | |
LUA_LIBDIR : /usr/lib/ (not found) | |
**************************************** | |
Use the command | |
luarocks config variables.LUA_LIBDIR <dir> | |
to fix the location | |
**************************************** | |
$ luarocks path | |
export LUA_PATH='/usr/local/share/lua/5.3/?.lua;/usr/share/lua/5.3/?.lua;/usr/share/lua/5.3/?/init.lua;/usr/lib/lua/5.3/?.lua;/usr/lib/lua/5.3/?/init.lua;./?.lua;./?/init.lua;/home/usmpa/.luarocks/share/lua/5.3/?.lua;/home/usmpa/.luarocks/share/lua/5.3/?/init.lua;/usr/local/share/lua/5.3/?/init.lua' | |
export LUA_CPATH='/usr/lib/lua/5.3/?.dll;/usr/lib/lua/5.3/loadall.dll;./?.dll;/home/usmpa/.luarocks/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/?.so' | |
export PATH='/home/usmpa/.luarocks/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Users/usmpa/AppData/Local/Microsoft/WindowsApps' | |
after doing an updatedb and then locate liblua5.3 I foudn that the right directory was set with the following command: | |
luarocks config variables.LUA_LIBDIR /cygdrive/c/Users/usmpa/AppData/Local/Packages/TheDebianProject.DebianGNULinux_76v4gfsz19hv4/LocalState/rootfs/usr/lib/x86_64-linux-gnu/ | |
ofcourse this is for my distro and my user, so you must use locate for yours |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would have been better posting this on Cygwin list as some devs/maintainers will not access GH and some other commercial sites.
What is LUA_LIBDIR meant to point to?
Are you sure that LUA_{C,}PATH can contain glob patterns?
Below is what was installed on my system by liblua-devel and lua-gv pulled in by some other package: