incubator-pagespeed-ngx
incubator-pagespeed-ngx copied to clipboard
Installation
Yeah....
This installation is super buggy. I've tried to install it a number of ways and it's just not happening.
` bash <(curl -f -L -sS -k https://ngxpagespeed.com/install) --nginx-version latest -b /home/build Detected redhat-based distro. Operating system dependencies are all set. Downloading ngx_pagespeed... --2018-08-17 14:23:01-- https://github.com/apache/incubator-pagespeed-ngx/archive/latest-stable.zip Resolving github.com... 192.30.255.113, 192.30.255.112 Connecting to github.com|192.30.255.113|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/apache/incubator-pagespeed-ngx/zip/latest-stable [following] --2018-08-17 14:23:01-- https://codeload.github.com/apache/incubator-pagespeed-ngx/zip/latest-stable Resolving codeload.github.com... 192.30.255.121, 192.30.255.120 Connecting to codeload.github.com|192.30.255.121|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 153203 (150K) [application/zip] Saving to: “/tmp/tmp.bG8h4PWnp4/ngx_pagespeed-latest-stable.zip”
100%[======================================================================================================================================================>] 153,203 --.-K/s in 0.1s
2018-08-17 14:23:01 (1.10 MB/s) - “/tmp/tmp.bG8h4PWnp4/ngx_pagespeed-latest-stable.zip” saved [153203/153203]
/dev/fd/63: line 625: -1: substring expression < 0 `
here was my last attempt. I actually did the manual install as well got as far as ./configure
adding module in /root/./incubator-pagespeed-ngx-1.13.35.1-beta mod_pagespeed_dir=/root/./incubator-pagespeed-ngx-1.13.35.1-beta/psol/include build_from_source=false checking for psol ... not found ./configure: error: module ngx_pagespeed requires the pagespeed optimization library. Look in /root/nginx-1.15.2/objs/autoconf.err for more details.
I had to move files all over the place because it seemed the builder had the paths hard coded.
What version of gcc are you using? I had the same error as you -- checking for psol ... not found ./configure: error: module ngx_pagespeed requires the pagespeed optimization library. -- and after some digging realised Nginx doesn't compile on my server with gcc version 8.* but compiles fine with gcc version 7.* as far as I can tell.
For those who encounters
/dev/fd/63: line 625: -1: substring expression < 0
Try replace the Line 625
nps_module_dir="$BUILDDIR/${nps_module_dir::-1}"
with
nps_module_dir="$BUILDDIR/${nps_module_dir}"