libprotobuf-dev 和 lib-protobuf8 有什么区别

libprotobuf-dev 和 lib-protobuf8 有什么区别

我想protobuf为我的 cpp 项目安装,我搜索了protobuf一下 apt-cache search protobuf ,结果显示如下:

libmirprotobuf-dev - Display server for Ubuntu - protocol definition  
libmirprotobuf0 - Display server for Ubuntu - protocol implementation  
libprotobuf-dev - protocol buffers C++ library (development files)  
libprotobuf-lite8 - protocol buffers C++ library (lite version)  
libprotobuf8 - protocol buffers C++ library  
libprotoc-dev - protocol buffers compiler library (development files)  
protobuf-compiler - compiler for protocol buffer definition files  
golang-goprotobuf-dev - Protocol buffer support for the Go programming language  
libactivemq-protobuf-java - ActiveMQ Protocol Buffers Maven plugin  
libactivemq-protobuf-java-doc - ActiveMQ Protocol Buffers Maven plugin - documentation  
libdrizzledmessage-dev - Devel library containing serialized messages used with Drizzle  
libdrizzledmessage0 - Library containing serialized messages used with Drizzle
libprotobuf-c0 - Protocol Buffers C library  
libprotobuf-c0-dev - Protocol Buffers C static library and headers  
libprotobuf-java - Java bindings for protocol buffers  
mapnik-vector-tile - Vector tiles integration with mapnik - development files  
protobuf-c-compiler - protocol buffers C compiler  
python-protobuf - Python bindings for protocol buffers  
python-protobuf.socketrpc - Python socket RPC for Google protocol buffers 

我应该使用哪一个?

“(开发文件)”是什么意思?

答案1

堆栈溢出

开发文件或*-dev包通常包含与库接口相关的标题。

现在,关于您的安装,您不需要担心是否需要安装libprotobuf-dev。只需使用以下命令安装所需的包:

sudo apt-get install <package-name>

如果它依赖于任何*.dev文件那么它将自动下载并安装它们。

相关内容