Raspbian:PageSpeed(nginx)编译错误 [英] Raspbian: PageSpeed (nginx) compliation error

查看:101
本文介绍了Raspbian:PageSpeed(nginx)编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

执行以下命令后:

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:
https://github.com/pagespeed/ngx_pagespeed/wiki/Building-PSOL-From-Source

为了使Google的PageSpeed在Raspberry(一种ARM设备)上工作,如下所示:
https://github.com/pagespeed/ngx_pagespeed/issues/398

In order to make PageSpeed from Google work on the Raspberry, an ARM device, as stated here:
https://github.com/pagespeed/ngx_pagespeed/issues/398

在'make'之前完美运行命令后,我遇到了以下错误.直到执行"make"时才出现错误:

I ended up with the following error, after flawlessly running the commands before 'make'. There were no errors while executing 'make' until this:

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

我已经多次运行了上面的命令,而我到此为止. 实际上,我只能找到以下文件:

I have ran the commands above several times, and I only got this far. And indeed, I can only find the following files:

    image_types.proto
    image_types.pb.h
    image_types.pb.cc

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

In the following directory, as seen in the error:

/home/something/mod_pagespeed/src/out/Release/obj/gen/protoc_out/instaweb/net/instaweb/rewriter

我怎么可能检索到正确的文件?

How can I possibly retrieve the correct file necessary?

推荐答案

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

To successfully pass the HTTPS fetching tests, you may need to first set environment variables to find the certificate files. On Ubuntu, the test binaries should have the correct paths by default. On CentOS, these settings should work:

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

export SSL_CERT_DIR=/etc/pki/tls/certs export SSL_CERT_FILE=/etc/pki/tls/cert.pem

这篇关于Raspbian:PageSpeed(nginx)编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆