apisix
apisix copied to clipboard
bug: make deps prompt error
Issue description
Environment
- apisix version (cmd:
apisix version): master - OS (cmd:
uname -a): ubuntu - OpenResty / Nginx version (cmd:
nginx -Voropenresty -V): 1.19 - etcd version, if have (cmd: run
curl http://127.0.0.1:9090/v1/server_infoto get the info from server-info API): - apisix-dashboard version, if have:
after excute
curl https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh -sL | sudo bash -
make deps prompt error:
mkdir -p ~/.luarocks
luarocks config --local variables.OPENSSL_LIBDIR /usr/local/openresty/openssl/lib
Error: Cannot create file at /home/xxxx/.luarocks/config-5.1.lua
Makefile:58: recipe for target 'deps' failed
make: *** [deps] Error 1
Why you need sudo to create directory under /home/xxxx if you are xxxx?
Why you need
sudoto create directory under/home/xxxxif you arexxxx?
because /home/xxxx/.luarocks/config-5.1.lua was created after execute linux-install-luarocks.sh
and make deps will do it again
luarocks config --local variables.OPENSSL_LIBDIR $(addprefix $(OR_PREFIX), openssl/lib)
so prompt error.