Skip to content

ngx_http_core_try_files_phase was not declared in this scope #3

@brad13x

Description

@brad13x

Installing on a clean ubuntu 16.04 at digital ocean.

Used this guide to create some Swap space then ran the code below per this post

cd /opt
&& git clone https://github.com/serveradminsh/installers
&& cd installers/nginx
&& chmod +x installer.sh
&& ./installer.sh

/usr/local/src/github/ngx_pagespeed-1.12.34.2-beta/src/ngx_pagespeed.cc
/usr/local/src/github/ngx_pagespeed-1.12.34.2-beta/src/ngx_pagespeed.cc: In function ‘ngx_int_t net_instaweb::{anonymous}::ps_preaccess_handler(ngx_http_request_t*)’:
/usr/local/src/github/ngx_pagespeed-1.12.34.2-beta/src/ngx_pagespeed.cc:3011:31: error: ‘ngx_http_core_try_files_phase’ was not declared in this scope
while (ph[i + 1].checker != ngx_http_core_try_files_phase &&
^
objs/Makefile:2364: recipe for target 'objs/addon/src/ngx_pagespeed.o' failed
make[1]: *** [objs/addon/src/ngx_pagespeed.o] Error 1
make[1]: Leaving directory '/usr/local/src/github/nginx'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2

Was wondering if it was because I didnt create enough Swap space (1G) or if the something is wrong with the ngx_pagespeed code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions