安装ngx_pagespeed配置过程发生错误

问答中心分类: Nginx安装ngx_pagespeed配置过程发生错误
puffbaby asked 7 年 ago
nginx1.10.2重新编译增加了ngx_pagespeed1.11.33.4,也就是ngx_pagespeed的第一个稳定版。主机是阿里云centos6.5 64位系统。在configure的时候发生了错误,后面看到需要gcc》=4.8,服务器默认的是4.4.7于是就升级了GCC到4.8.1
configure顺利通过,然而Make的时候发生了错误

make -f objs/Makefile
make[1]: Entering directory `/root/lnmp/src/nginx-1.10.2'
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-local-typedefs -Wno-error -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
-o objs/src/core/nginx.o \
src/core/nginx.c
{standard input}: Assembler messages:
{standard input}:3614: Error: expecting string instruction after `rep'
make[1]: *** [objs/src/core/nginx.o] 错误 1
make[1]: Leaving directory `/root/lnmp/src/nginx-1.10.2'
make: *** [build] 错误 2

1 Answers
oneinstack answered 7 年 ago
不建议用ngx_pagespeed,还不如直接加cdn。之前有测试过一个版本,导致cpu100% ,不稳定。