Failed to deploy in Ubuntu 18.04 under Nginx
Closed this issue · 1 comments
I am following the guide to deploy ngrest under Nginx:
https://github.com/loentar/ngrest/wiki/Deploy-ngrest-under-Nginx
I already have Nginx 1.14.0 installed previously, but I am following the guide step by step. The process fails at this point:
nginx -V 2>&1 | tr ' ' '\n' | grep -- --with | egrep -v -- '--with-(cc|ld)' | xargs ./configure
This is the error log:
./configure: 45: auto/init: cannot create Makefile: Permission denied
mkdir: cannot create directory 'objs': Permission denied
./configure: 16: ./configure: cannot create objs/ngx_auto_headers.h: Directory nonexistent
./configure: 17: ./configure: cannot create objs/autoconf.err: Directory nonexistent
./configure: 19: ./configure: cannot create objs/ngx_auto_config.h: Directory nonexistent
./configure: 6: auto/have: cannot create objs/ngx_auto_config.h: Directory nonexistent
checking for OS
- Linux 4.15.0-23-generic x86_64
checking for C compiler ..../configure: 8: auto/feature: cannot create objs/autoconf.err: Directory nonexistent
./configure: 28: auto/feature: cannot create objs/autotest.c: Directory nonexistent
./configure: 1: eval: cannot create objs/autoconf.err: Directory nonexistent
not found
./configure: 116: auto/feature: cannot create objs/autoconf.err: Directory nonexistent
./configure: 117: auto/feature: cannot create objs/autoconf.err: Directory nonexistent
./configure: 118: auto/feature: cannot create objs/autoconf.err: Directory nonexistent
./configure: 119: auto/feature: cannot create objs/autoconf.err: Directory nonexistent
./configure: 120: auto/feature: cannot create objs/autoconf.err: Directory nonexistent
./configure: error: C compiler cc is not found
Please help.
OK, I opened file browser as admin and change all permissions in ~/nginx-build
to Read and Write. Problem solved. Is there a way to avoid this problem with command line by the way? Can you include that in your guide?