idbeta opened a new issue #3529:
URL: https://github.com/apache/apisix/issues/3529


   ### Issue description
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): master
   * OS (cmd: `uname -a`): ubuntu 
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   * etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   * apisix-dashboard version, if have:
   
   Because luarock needs sudo when installing,
   ```
   curl 
https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh
 -sL | sudo bash -
   ```
    so the `make deps` of APISIX installed via source code also needs sudo, 
otherwise prompt error:
   ```
   mkdir -p ~/.luarocks
   luarocks config --local variables.OPENSSL_LIBDIR 
/usr/local/openresty/openssl/lib
   
   Error: Cannot create file at /home/azureuser/.luarocks/config-5.1.lua
   Makefile:58: recipe for target 'deps' failed
   make: *** [deps] Error 1
   ```
   can also fixed it via modify `linux-install-luarocks.sh`,
   `make install > build.log 2>&1 || (cat build.log && exit 1)` -> `sudo make 
install ...`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to