Ubuntu上安装protobuf 和protobuf-c

第一步、下载安装包 http://pan.baidu.com/s/1i43CzJn
第二部、解压

安装protobuf

$ cd protobuf-2.6.1
$ ./configure
$ make
$ make check
$ sudo make install

安装protobuf-c

$cd protobuf-c-1.2.1
$./configure
$ export LD_LIBRARY_PATH=/usr/local/lib 
//不加这句`export LD_LIBRARY_PATH=/usr/local/lib`可能会报错
//(error while loading shared libraries: libprotoc.so)
$ make
$ sudo make install

猜你喜欢

转载自blog.csdn.net/qq_33775402/article/details/78093897