0
執行以下命令後:Raspbian:的PageSpeed(nginx的)compliation錯誤
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從谷歌工作,對樹莓,臂裝置中,如在這裏陳述:
https://github.com/pagespeed/ngx_pagespeed/issues/398
我結束了以下錯誤,完美無瑕地運行命令之前'm AKE」。執行'make'時沒有錯誤,直到此:
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
我已經跑了上面的命令多次,我只有這麼遠。 事實上,我只能找到以下文件:
image_types.proto
image_types.pb.h
image_types.pb.cc
在下面的目錄中,如在錯誤:
/home/something/mod_pagespeed/src/out/Release/obj/gen/protoc_out/instaweb/net/instaweb/rewriter
我怎麼可能獲取必要的正確的文件?