Skip to content

psol: support a binary distribution #119

Merged
merged 1 commit into from Jan 9, 2013

3 participants

@jeffkaufman
Google PageSpeed member

We want people to be able to install ngx_pagespeed like any other nginx module.
If PSOL were a full-fledged library with a stable interface we could simply say
"install PSOL" which might be as easy as apt-get install psol-dev, but it's
not. Instead we directly include a precompiled binary library along with its
headers. By building the binaries on something sufficiently old (Centos 5.4)
they should work pretty much everywhere someone might think to run
ngx_pagespeed, but building from source is still a documented option if they
don't.

Headers and binaries are from trunk of r2338, as documented in the READMEs.

@jeffkaufman jeffkaufman psol: support a binary distribution
We want people to be able to install ngx_pagespeed like any other nginx module.
If PSOL were a full-fledged library with a stable interface we could simply say
"install PSOL" which might be as easy as `apt-get install psol-dev`, but it's
not.  Instead we directly include a precompiled binary library along with its
headers.  By building the binaries on something sufficiently old (Centos 5.4)
they should work pretty much everywhere someone might think to run
ngx_pagespeed, but building from source is still a documented option if they
don't.

Headers and binaries are from trunk of r2338, as documented in the READMEs.
35dd833
@jeffkaufman
Google PageSpeed member

Change summary:

  • updated README.md to describe the simpler build process.
  • added scripts/copy_includes.sh.
  • psol/include has all the headers for mod_pagespeed and dependents, and is the output of copy_includes.sh.
  • psol/lib has the library binaries for mod_pagespeed, apr, aprutil, and serf.
@oschaaf
Google PageSpeed member
oschaaf commented Jan 8, 2013

This LGTM, but will building and adding the binaries remain a manual action?

@jeffkaufman
Google PageSpeed member

I'd like to automate building and adding the binaries, but the current process requires two old VMs, one 32 bit and one 64. This seems awkward to automate. I wonder if cross-compiling would work here?

@bnoordhuis

I wonder if cross-compiling would work here?

I reckon it should if you're doing it on a dual-arch system like a recent Debian or Ubuntu install.

@jeffkaufman
Google PageSpeed member
@jeffkaufman jeffkaufman merged commit 0b585d8 into master Jan 9, 2013
@jeffkaufman jeffkaufman deleted the jefftk-binary-psol branch Jan 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.