[root@kong-ingress-controller-6ccd5485bf-fjfbs tmp]# luarocks install kong-oidc
Warning: The directory '/root/.cache/luarocks' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing /usr/local/bin/luarocks with sudo, you may want sudo's -H flag.
Installing https://luarocks.org/kong-oidc-1.0.4-0.src.rock
Missing dependencies for kong-oidc 1.0.4-0:
lua-resty-openidc ~> 1.4.0-1 (1.6.1-1 installed)
kong-oidc 1.0.4-0 depends on lua-resty-openidc ~> 1.4.0-1 (1.6.1-1 installed)
Installing https://luarocks.org/lua-resty-openidc-1.4.0-1.src.rock
Missing dependencies for lua-resty-openidc 1.4.0-1:
lua-resty-hmac (not installed)
lua-resty-openidc 1.4.0-1 depends on lua-resty-hmac (not installed)
Installing https://luarocks.org/lua-resty-hmac-v1.0-1.rockspec
Missing dependencies for lua-resty-hmac v1.0-1:
luacrypto (not installed)
lua-resty-hmac v1.0-1 depends on luacrypto (not installed)
Installing https://luarocks.org/luacrypto-0.3.2-2.src.rock
gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c src/lcrypto.c -o src/lcrypto.o -I/usr/include
sh: gcc: command not found
You need to install gcc and libssl, cause luacrypto are Lua bindings to OpenSSL. The required packages depend on the base linux distro you use for the Docker image.
[root@kong-ingress-controller-6ccd5485bf-fjfbs tmp]# luarocks install kong-oidc Warning: The directory '/root/.cache/luarocks' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing /usr/local/bin/luarocks with sudo, you may want sudo's -H flag. Installing https://luarocks.org/kong-oidc-1.0.4-0.src.rock Missing dependencies for kong-oidc 1.0.4-0: lua-resty-openidc ~> 1.4.0-1 (1.6.1-1 installed)
kong-oidc 1.0.4-0 depends on lua-resty-openidc ~> 1.4.0-1 (1.6.1-1 installed) Installing https://luarocks.org/lua-resty-openidc-1.4.0-1.src.rock Missing dependencies for lua-resty-openidc 1.4.0-1: lua-resty-hmac (not installed)
lua-resty-openidc 1.4.0-1 depends on lua-resty-hmac (not installed) Installing https://luarocks.org/lua-resty-hmac-v1.0-1.rockspec Missing dependencies for lua-resty-hmac v1.0-1: luacrypto (not installed)
lua-resty-hmac v1.0-1 depends on luacrypto (not installed) Installing https://luarocks.org/luacrypto-0.3.2-2.src.rock gcc -O2 -fPIC -I/usr/local/openresty/luajit/include/luajit-2.1 -c src/lcrypto.c -o src/lcrypto.o -I/usr/include sh: gcc: command not found
Error: Failed installing dependency: https://luarocks.org/lua-resty-openidc-1.4.0-1.src.rock - Failed installing dependency: https://luarocks.org/lua-resty-hmac-v1.0-1.rockspec - Failed installing dependency: https://luarocks.org/luacrypto-0.3.2-2.src.rock - Build error: Failed compiling object src/lcrypto.o