volga629-1 edited a comment on issue #1740:
URL:
https://github.com/apache/incubator-pagespeed-ngx/issues/1740#issuecomment-992026441
I have same issue with nginx 1.20 with fedora server 34
ngx_pagespeed-release-1.13.35.2.
Psol directory is exist, but still failing to detect. Seems like config file
issue
Attempt build RPM with mockbuild
The question why you need ask interactive question in middle of config file ?
```
adding module in
/builddir/build/BUILD/nginx-1.20.2/ngx_pagespeed-release-1.13.35.2
You have set --with-debug for building nginx, but precompiled Debug binaries
for
PSOL, which ngx_pagespeed depends on, aren't available. If you're trying to
debug PSOL you need to build it from source. If you just want to run nginx
with
debug-level logging you can use the Release binaries.
**Use the available Release binaries?**
mod_pagespeed_dir=/builddir/build/BUILD/nginx-1.20.2/ngx_pagespeed-release-1.13.35.2/psol/include
build_from_source=false
checking for psol ... not found
./configure: error: module ngx_pagespeed requires the pagespeed optimization
library.
Look in /builddir/build/BUILD/nginx-1.20.2/objs/autoconf.err for more
details.
error: Bad exit status from /var/tmp/rpm-tmp.HJYM2B (%build)
```
```
[volga629@canldev01-fedora32 ngx_pagespeed-release-1.13.35.2]$ ls
config config.make cpp_feature LICENSE psol PSOL_BINARY_URL README.md
scripts src test
[volga629@canldev01-fedora32 ngx_pagespeed-release-1.13.35.2]$ ls -la psol/
total 20
drwxrwxr-x 4 volga629 volga629 4096 Jan 25 2018 .
drwxrwxr-x 6 volga629 volga629 4096 Dec 12 20:12 ..
drwxr-xr-x 10 volga629 volga629 4096 Jan 25 2018 include
-rw-rw-r-- 1 volga629 volga629 136 Jan 25 2018 include_history.txt
drwxrwxr-x 3 volga629 volga629 4096 Jan 25 2018 lib
[volga629@canldev01-fedora32 ngx_pagespeed-release-1.13.35.2]$
```
No need it code
```
echo "
You have set --with-debug for building nginx, but precompiled Debug binaries
for
PSOL, which ngx_pagespeed depends on, aren't available. If you're trying to
debug PSOL you need to build it from source. If you just want to run nginx
with
debug-level logging you can use the Release binaries."
echo -n "
Use the available Release binaries?"
read -p " [Y/n] " yn
if [[ "$yn" == N* || "$yn" == n* ]]; then
echo "Cancelled."
exit 1
fi
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]