janestone 发表于 2020-9-10 21:06:07

编译ngx_pagespeed 模块出现错误

build_from_source=false
checking for psol ... not found
./configure: error: module ngx_pagespeed requires the pagespeed optimization library.
Look in objs/autoconf.err for more details.
make: *** No rule to make target 'build', needed by 'default'.Stop.
make: *** No rule to make target 'build', needed by 'default'.Stop.
mv: cannot stat '/usr/local/nginx/sbin/nginx': No such file or directory
cp: cannot stat 'objs/nginx': No such file or directory
Test nginx configure file...
include/upgrade_nginx.sh: line 73: /usr/local/nginx/sbin/nginx: No such file or directory
upgrade...
make: *** No rule to make target 'upgrade'.Stop.
Checking ...
Error: Nginx upgrade failed.

大侠们,要怎么解决?


licess 发表于 2020-9-11 10:09:24

checking for psol ... not found
./configure: error: module ngx_pagespeed requires the pagespeed optimization library.

psol你没加上
在ngx_pagespeed源码目录下:
wget https://dl.google.com/dl/page-speed/psol/1.13.35.2-x64.tar.gz
tar zxf 1.13.35.2-x64.tar.gz

另外
你提供的日志不全,还需要确认uuid是否安装上
centos系统的话:yum install libuuid-devel
debian/ubuntu系统的话:apt-get install uuid-dev

janestone 发表于 2020-9-11 11:01:39

libuuid-devel 已经装上了, psol 文件也明明已经加上了,为什么找不到呢?
安装的https://dl.google.com/dl/page-speed/psol/1.9.32.10.tar.gz

licess 发表于 2020-9-11 19:28:21

janestone 发表于 2020-9-11 11:01
libuuid-devel 已经装上了, psol 文件也明明已经加上了,为什么找不到呢?
安装的https://dl.google.com/d ...

不清楚现在报什么错误没法说

你下载的这是多少年前的ngx_pagespeed版本了,虽然ngx_pagespeed也很长时间不更新了,也得选个最新的版本吧
页: [1]
查看完整版本: 编译ngx_pagespeed 模块出现错误