loentar / ngrest

Fast and easy C++ RESTful WebServices framework
Apache License 2.0
464 stars 93 forks source link

Failed to deploy in Ubuntu 18.04 under Nginx #52

Closed hoang408 closed 6 years ago

hoang408 commented 6 years ago

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

./configure: error: C compiler cc is not found

Please help.

hoang408 commented 6 years ago

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?