[英]Warning: Could not find Lua 5.3 in PATH - When Trying to Install Gumbo library with Luarocks
在編寫luarocks install gumbo
在 cmd 中我的 luarocks 文件的位置/目錄中,我收到以下錯誤
Warning: Could not find Lua 5.3 in PATH.
Modules may not install with the correct configurations. You may want to specify the path prefix to your build of Lua 5.3 using --lua-dir
Installing https://luarocks.org/gumbo-0.5-1.src.rock
Error: Failed finding Lua library. You may need to configure LUA_LIBDIR.
我已將 lua53.exe 添加到同一目錄,並將該文件添加到我的用戶變量和控制面板中的系統變量中。
Not sure if worth mentioning, but when running lua53.exe and trying to use luarocks install gumbo
from there, the lua53 cmd-like window responds with stdin:1: syntax error near 'install'
I was hoping to do some web scraping with lua ,后來構建了一個使用秋葵湯在魔獸世界客戶端中顯示某些有用信息的魔獸世界插件,但我似乎連最基本的東西都無法使用......
在 Windows 上設置LuaRocks很煩人,我自己也不熟悉。 如果您將 LuaRocks 和 Lua 5.3 Windows 二進制文件(可執行文件和包含)添加到您的Path
系統變量:
luarocks path
打印用於設置LUA_PATH
和LUA_CPATH
系統變量的命令。variables.LUA_LIBDIR
值是什么。 您可以使用luarocks config
檢查它。 對我來說,該文件位於: C:/Users/Ketho/AppData/Roaming/luarocks/config-5.3.lua
variables.LUA_LIBDIR = "C:/lua-5.3.5_Win32_bin"
variables.LUA_INCDIR = "C:/lua-5.3.5_Win32_bin/include"
至於使用gumbo 在魔獸世界中顯示信息,插件環境是沙盒的。 除非您的意思是您只想將數據硬編碼到您的插件中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.