首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Raspbian: PageSpeed (nginx)编译错误

Raspbian: PageSpeed (nginx)编译错误
EN

Stack Overflow用户
提问于 2014-10-22 05:26:36
回答 1查看 318关注 0票数 0

执行以下命令后:

代码语言:javascript
复制
mkdir -p ~/bin
cd ~/bin
svn co http://src.chromium.org/svn/trunk/tools/depot_tools
export PATH=$PATH:~/bin/depot_tools
mkdir ~/mod_pagespeed
cd ~/mod_pagespeed
gclient config http://modpagespeed.googlecode.com/svn/tags/1.9.32.1/src/
gclient sync --force --jobs=1 # add --revision=xxxx for a specific svn revision
cd src/
make AR.host="$PWD/build/wrappers/ar.sh" \
   AR.target="$PWD/build/wrappers/ar.sh" \
   BUILDTYPE=Release \
   mod_pagespeed_test pagespeed_automatic_test

发自:

https://github.com/pagespeed/ngx_pagespeed/wiki/Building-PSOL-From-Source

为了让谷歌的PageSpeed在Raspberry上工作,Raspberry是一种ARM设备,如下所述:

https://github.com/pagespeed/ngx_pagespeed/issues/398

在“make”之前完美地运行命令后,我最终得到了以下错误。在执行'make‘时没有出现错误,直到下面这样:

代码语言:javascript
复制
CXX(host) out/Release/obj.host/protoc/third_party/protobuf/src/google/protobuf/compiler/main.o
LINK(host) out/Release/protoc
RULE _home_something_mod_pagespeed_src_net_instaweb_instaweb_gyp_instaweb_image_types_pb_target_genproto_0 out/Release/obj/gen/protoc_out/instaweb/net/instaweb/rewriter/image_types.pb.h
CXX(target) out/Release/obj.target/instaweb_image_types_pb/gen/protoc_out/instaweb/net/instaweb/rewriter/image_types.pb.o
In file included from out/Release/obj/gen/protoc_out/instaweb/net/instaweb/rewriter/image_types.pb.cc:5:0:
out/Release/obj/gen/protoc_out/instaweb/net/instaweb/rewriter/image_types.pb.h:7:18: fatal error: string: No such file or directory
#include <string>
              ^
compilation terminated.
net/instaweb/instaweb_image_types_pb.target.mk:355: recipe for target 'out/Release/obj.target/instaweb_image_types_pb/gen/protoc_out/instaweb/net/instaweb/rewriter/image_types.pb.o' failed
make: *** [out/Release/obj.target/instaweb_image_types_pb/gen/protoc_out/instaweb/net/instaweb/rewriter/image_types.pb.o] Error 1

我已经运行了上面的命令几次,我只能做到这一步。实际上,我只能找到以下文件:

代码语言:javascript
复制
    image_types.proto
    image_types.pb.h
    image_types.pb.cc

在以下目录中,如错误所示:

代码语言:javascript
复制
/home/something/mod_pagespeed/src/out/Release/obj/gen/protoc_out/instaweb/net/instaweb/rewriter

如何才能检索到所需的正确文件?

EN

回答 1

Stack Overflow用户

发布于 2014-11-23 17:11:12

要成功通过HTTPS获取测试,您可能需要首先设置环境变量来查找证书文件。在Ubuntu上,默认情况下测试二进制文件应该有正确的路径。在CentOS上,以下设置应起作用:

导出SSL_CERT_DIR=/etc/pki/tls/certs导出SSL_CERT_FILE=/etc/pki/tls/cert.pem

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26496660

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档