Closed shaneog closed 9 years ago
./configure: error: module ngx_pagespeed requires the pagespeed optimization library.
It sounds like you need to install an additional library. Maybe it's libpagespeed? I am not sure what the library is called.
In any case, any libraries that the build process depends on, must be added to the control file as a Build-Depends. But this is assuming that your library is available in the Ubuntu APT repo. If not, then things become a bit more complicated.
It's the psol
library and it's included as a sub-directory under the ngx_pagespeed
plugin directory, as Google recommends. For some reason it's not being found there.
When I re-build using the deb-src on another machine it works perfectly, just not using this project.
Maybe the strictness of the pbuilder environment interferes with the detection of the psol library. Anyway, if building the deb-src without pbuilder works, then that should be good enough for you. We only use the Docker + pbuilder approach to automate building packages for multiple distributions. Since you are only building for your own machines, building the deb-src without Docker + pbuilder is good enough.
I currently use nginx from the Passenger Enterprise repositories. However I wish to use the Pagespeed module.
Within the Vagrant build machine
ngx_pagespeed
release into the modules directory (/passenger/packaging/debian/debian_specs/nginx/modules/psol
).psol
release into that directory (/passenger/packaging/debian/debian_specs/nginx/modules/ngx_pagespeed
).rules.erb
file to add the following line--add-module=$(MODULESDIR)/ngx_pagespeed \
just before the inclusion of the passenger module (line 131)./passenger/packaging/debian/debian_specs/nginx/source/include-binaries
file with the psol binaries listed:./build -p /passenger -w ~/work -c ~/cache -o output -a amd64 -d trusty pkg:nginx:all
to build just the nginx packages.The build fails with the following errors, despite the fact that
psol
is in the correct place.Question Is there something that I am doing wrong, or missing from this process?