问题报错:
configure: error: Package requirements (protobuf >= 2.6.0) were not met:
No package 'protobuf' found
Consider 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.
(1)问题出现:
安装protobuf-c是,我们需要首先安装protobuf, 此外还需要通过protobuf-c对 之前安装的protobuf的版本认证。 我们当前开发所使用的是
protobuf2.6.0 以及protobuf-c 1.1.1 。
protobuf-c 1.1.1 Package requirements (protobuf >= 2.6.0)
Proctobuf安装步骤
tar zxvf
protobuf-2.3.0.tar.gz
cd protobuf-2.4.1
./configure --prefix=/usr/local
make
sudo make install
在/etc/ld.so.conf 中添加一行: /usr/local/lib,保存退出
/sbin/ldconfig -v
Proctobuf-c安装步骤,版本要一直,前提: