-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install instructions #6
Comments
@oschaaf Do you have the download link for the latest release? |
Hmm, that is weird.. I could probably re-create the archive(s) and host them somewhere .. but this might resolve itself at some point in the future. Having said that, for ngx_pagespeed, one can just take the code as at is at latest commit on the main branch and use that instead... it's a long while ago but I think you can do that via
|
The apache-hosted ones are still available, but the last release was 7 years ago. I'll try building it from master (I initially tried cloning it, but wasn't sure what other steps were needed). |
Well, the branches on this repository only include releases from 10+ years ago... Looks like some of the dependencies need to be updated to build from source: $ scripts/build_ngx_pagespeed.sh -ms -b /path/to/build
Detected that we're running in an existing ngx_pagespeed checkout.
Detected debian-based distro.
Operating system dependencies are all set.
Cloning into '/ngx_pagespeed/testing-dependencies/mod_pagespeed/third_party/apr/src'...
fatal: unable to connect to git.apache.org:
git.apache.org[0: 65.108.73.173]: errno=Connection refused
git.apache.org[1: 2a01:4f9:6b:49a9::2]: errno=Cannot assign requested address
fatal: clone of 'git://git.apache.org/apr.git' into submodule path '/ngx_pagespeed/testing-dependencies/mod_pagespeed/third_party/apr/src' failed
Failed to clone 'third_party/apr/src'. Retry scheduled
Cloning into '/ngx_pagespeed/testing-dependencies/mod_pagespeed/third_party/aprutil/src'...
fatal: unable to connect to git.apache.org:
git.apache.org[0: 65.108.73.173]: errno=Connection refused
git.apache.org[1: 2a01:4f9:6b:49a9::2]: errno=Cannot assign requested address
fatal: clone of 'git://git.apache.org/apr-util.git' into submodule path '/ngx_pagespeed/testing-dependencies/mod_pagespeed/third_party/aprutil/src' failed
Failed to clone 'third_party/aprutil/src'. Retry scheduled
Cloning into '/ngx_pagespeed/testing-dependencies/mod_pagespeed/third_party/httpd/src'...
fatal: unable to connect to git.apache.org:
git.apache.org[0: 65.108.73.173]: errno=Connection refused
git.apache.org[1: 2a01:4f9:6b:49a9::2]: errno=Cannot assign requested address
fatal: clone of 'git://git.apache.org/httpd.git' into submodule path '/ngx_pagespeed/testing-dependencies/mod_pagespeed/third_party/httpd/src' failed
Failed to clone 'third_party/httpd/src'. Retry scheduled
Cloning into '/ngx_pagespeed/testing-dependencies/mod_pagespeed/third_party/httpd24/src'...
fatal: unable to connect to git.apache.org:
git.apache.org[0: 65.108.73.173]: errno=Connection refused
git.apache.org[1: 2a01:4f9:6b:49a9::2]: errno=Cannot assign requested address
fatal: clone of 'git://git.apache.org/httpd.git' into submodule path '/ngx_pagespeed/testing-dependencies/mod_pagespeed/third_party/httpd24/src' failed
Failed to clone 'third_party/httpd24/src'. Retry scheduled
Cloning into '/ngx_pagespeed/testing-dependencies/mod_pagespeed/third_party/apr/src'...
fatal: unable to connect to git.apache.org:
git.apache.org[0: 65.108.73.173]: errno=Connection refused
git.apache.org[1: 2a01:4f9:6b:49a9::2]: errno=Cannot assign requested address
fatal: clone of 'git://git.apache.org/apr.git' into submodule path '/ngx_pagespeed/testing-dependencies/mod_pagespeed/third_party/apr/src' failed
Failed to clone 'third_party/apr/src' a second time, aborting
fatal: Failed to recurse into submodule path 'testing-dependencies/mod_pagespeed'
/ngx_pagespeed/testing-dependencies/mod_pagespeed /ngx_pagespeed
install/build_env.sh: line 47: install/debian/build_env.sh: No such file or directory
Error: Failure running 'install/build_psol.sh --skip_tests --skip_packaging ', exiting. |
So, The rest of the errors appear to be submodules ( |
Actually, it looks like mod_pagespeed has already been updated, we just need to change the submodule in ngx_pagespeed to a working version. |
Changes I've made so far:
Now I'm at:
|
That's awkward. So .. it seems ngx_pagespeed hasn't received much love for a long time. I'm positive it can be done to get it to work against the master branch of mod_pagespeed, as that produces a valid So .. after having thought about this a little more, IMHO the only thing that makes sense to invest time into would be this approach. Reviving the old releases seems like a bad idea to me considering the old tooling and especially dependencies. The difference would be being fairly up-to-date instead of lagging behind (too) many years, and another perk is that it would be trivial to absorb further changes to mod_pagespeed. Unfortunately I didn't get around to do this for a long time even though it has been in the back of my mind, and it looks like I will not have time to have a go at this in the foreseeable future either due to other obligations. Having said that, I think it would be doable for anyone willing to invest time into this. |
I too have tried to build from source, giving up trying to run
Which is... interesting... Maybe there was such a severe security issue that they overwrote git history? Not sure. I did find a binary link!! https://archive.apache.org/dist/incubator/pagespeed/1.14.36.1/x64/psol-1.14.36.1-apache-incubating-x64.tar.gz |
Hmm, I can reproduce that mismatch. It's weird, because this used to work in CI. The git commit still exists, but somehow the sha is different, very odd. I vaguely remember seeing this before a long time ago, I think that was another dependency, then this was local to some depending on the geographic location of the client. It is bypassable by locally updating the hash to the expected value (over at https://github.com/We-Amp/mod_pagespeed/blob/master/bazel/repositories.bzl#L42) As for building, I would recommend using the docker image defined at https://github.com/We-Amp/mod_pagespeed/blob/dff6f75e9b67175859a58e3ae899294bf00cde1c/.bazelrc#L318 |
OK, with that download link I got it building, but then I get:
This looks like it's been reported before, and may just need a newer version of PSOL? |
In case it's useful, these are my build instructions for Debian, using lxc for the build process:
Running as root in LXC container:
Copy module to server:
On the server, run:
On laptop, destroy LXC container once modules are installed and working:
|
The linked install instructions appear to need updating: https://www.modpagespeed.com/doc/build_ngx_pagespeed_from_source
e.g. It says to download the release from https://github.com/apache/incubator-pagespeed-ngx/archive/v${NPS_VERSION}.tar.gz
But, it doesn't look like the current release is available there: https://github.com/apache/incubator-pagespeed-ngx/archive/v1.14.36.1-stable.tar.gz
The only releases on this Github project are from a decade ago too, so difficult to find the correct download link.
The text was updated successfully, but these errors were encountered: