安装protobuf可能遇到的问题
下载protobuf-2.3.0: http://protobuf.googlecode.com/files/protobuf-2.3.0.zip http://code.google.com/p/protobuf/downloads/list 安装: unzip protobuf-2.3.0.zip cd protobuf-2.3.0 ./configure make make check make install 1.每步在执行过程中注意权限问题,有的命令不sudo执行会出问题。 ./configure make make check make install 2. 执行./configure 出现error,查看config.log文件看看是否缺某些安装软件,比如g++未安装等,因为执行文件中含有C++程序,所以出问题。 3.动静态库问题部分是转载 在Linux上编译google protobuff时,configure 默认选项是生成动态库,即libprotobuf.so文件。如果同时在多个动态库(动态库以 dlopen方式动态加载 )中使用同一buff结构,则运行时会报错误: ibprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already exists in database: foo