我有点像一个luarocks noob,但已经做了相当多的lua编码。我无法在任何地方找到答案;
我通过以下方式安装了新的luarock(lua-resty-auto-ssl):
luarocks install --tree lualib lua-resty-auto-ssl
这安装到我的目录没有问题,但是我没有任何.lua文件。
我可以在rock_manifest文件中看到它们都已列出。
如何安装.lua文件?
答案 0 :(得分:2)
运行luarocks install --tree lualib lua-resty-auto-ssl
后,我有一个包含以下内容的目录:
lualib
lualib/share
lualib/share/lua
lualib/share/lua/5.3
lualib/share/lua/5.3/resty
lualib/share/lua/5.3/resty/auto-ssl.lua
lualib/share/lua/5.3/resty/auto-ssl
lualib/share/lua/5.3/resty/auto-ssl/storage_adapters
lualib/share/lua/5.3/resty/auto-ssl/storage_adapters/redis.lua
lualib/share/lua/5.3/resty/auto-ssl/storage_adapters/file.lua
lualib/share/lua/5.3/resty/auto-ssl/jobs
lualib/share/lua/5.3/resty/auto-ssl/jobs/renewal.lua
lualib/share/lua/5.3/resty/auto-ssl/vendor
lualib/share/lua/5.3/resty/auto-ssl/vendor/shell.lua
lualib/share/lua/5.3/resty/auto-ssl/vendor/sockproc
lualib/share/lua/5.3/resty/auto-ssl/vendor/letsencrypt.sh
lualib/share/lua/5.3/resty/auto-ssl/storage.lua
lualib/share/lua/5.3/resty/auto-ssl/ssl_certificate.lua
lualib/share/lua/5.3/resty/auto-ssl/init.lua
lualib/share/lua/5.3/resty/auto-ssl/servers
lualib/share/lua/5.3/resty/auto-ssl/servers/challenge.lua
lualib/share/lua/5.3/resty/auto-ssl/servers/hook.lua
lualib/share/lua/5.3/resty/auto-ssl/utils
lualib/share/lua/5.3/resty/auto-ssl/utils/run_command.lua
lualib/share/lua/5.3/resty/auto-ssl/utils/shell_execute.lua
lualib/share/lua/5.3/resty/auto-ssl/utils/start_sockproc.lua
lualib/share/lua/5.3/resty/auto-ssl/init_worker.lua
lualib/share/lua/5.3/resty/auto-ssl/ssl_providers
lualib/share/lua/5.3/resty/auto-ssl/ssl_providers/lets_encrypt.lua
lualib/share/lua/5.3/resty/auto-ssl/shell
lualib/share/lua/5.3/resty/auto-ssl/shell/start_sockproc
lualib/share/lua/5.3/resty/auto-ssl/shell/letsencrypt_hooks
lualib/share/lua/5.3/resty/http_headers.lua
lualib/share/lua/5.3/resty/http.lua
lualib/lib64
lualib/lib64/luarocks
lualib/lib64/luarocks/rocks
lualib/lib64/luarocks/rocks/manifest
lualib/lib64/luarocks/rocks/lua-resty-auto-ssl
lualib/lib64/luarocks/rocks/lua-resty-auto-ssl/0.9.0-1
lualib/lib64/luarocks/rocks/lua-resty-auto-ssl/0.9.0-1/rock_manifest
lualib/lib64/luarocks/rocks/lua-resty-auto-ssl/0.9.0-1/lua-resty-auto-ssl-0.9.0-1.rockspec
lualib/lib64/luarocks/rocks/lua-resty-auto-ssl/0.9.0-1/doc
lualib/lib64/luarocks/rocks/lua-resty-auto-ssl/0.9.0-1/doc/CHANGELOG.md
lualib/lib64/luarocks/rocks/lua-resty-auto-ssl/0.9.0-1/doc/LICENSE.txt
lualib/lib64/luarocks/rocks/lua-resty-auto-ssl/0.9.0-1/doc/README.md
lualib/lib64/luarocks/rocks/lua-resty-http
lualib/lib64/luarocks/rocks/lua-resty-http/0.09-0
lualib/lib64/luarocks/rocks/lua-resty-http/0.09-0/rock_manifest
lualib/lib64/luarocks/rocks/lua-resty-http/0.09-0/lua-resty-http-0.09-0.rockspec
lualib/lib64/luarocks/rocks/lua-resty-http/0.09-0/doc
lualib/lib64/luarocks/rocks/lua-resty-http/0.09-0/doc/README.md
lualib/lib64/luarocks/rocks/lua-resty-http/0.09-0/doc/LICENSE
那里有很多Lua文件。你得到了什么结果?
(我认为这不重要,但是:我将Lua 5.3与LuaRocks 2.3.0一起使用)