我想通過LuaRocks安裝庫來訪問dll的函數。不幸的是,我沒有找到二進制文件,所以我認爲我需要在我的電腦上編譯一個ffi庫。經過一段時間的谷歌搜索,我發現外星人圖書館,所以我想通過命令luarocks install alien
安裝它。然後我收到一條消息:LuaRocks安裝Alien
Installing https://luarocks.org/alien-0.7.1-2.src.rock
Error: Could not find library file for FFI
No file ffi.lib in c:/external/lib
No file ffi.dll in c:/external/lib
No file libffi.dll in c:/external/lib
You may have to install FFI in your system and/or pass FFI_DIR or FFI_LIBDIR to
the luarocks command.
Example: luarocks install alien FFI_DIR=/usr/local
它沒有安裝庫。我會知道我做錯了什麼,我的問題是如何安裝這個庫/獲取一些ffi lib dll二進制文件。