本文主要是介绍MOSH:USE PROTOBUF’S GZIP,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
日課と化してるgit pull後のmakeでエラー…
transportfragment.cc:20:44: error: google/protobuf/io/gzip_stream.h: No such file or directory
+#include <google/protobuf/io/gzip_stream.h>
[Use protobuf’s Gzip{Input,Output}Stream wrapper around zlib]
これっぽいのでprotobufを入れ直す。
% yum list installed | grep protobuf
protobuf.x86_64 2.3.0-7.el6 @epel protobuf-compiler.x86_64 protobuf-devel.x86_64 2.3.0-7.el6 @epel
% yum remove protobuf\*
% wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2
protobuf-2.4.1% ./configure –with-PACKAGE=yes
checking for protobuf... no configure: error: Package requirements (protobuf) were not met:No package 'protobuf' foundConsider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.Alternatively, you may set the environment variables protobuf_CFLAGS and protobuf_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
mosh% PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure
% cat /etc/ld.so.conf.d/ull.conf
/usr/local/lib
% ldconfig
这篇关于MOSH:USE PROTOBUF’S GZIP的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!