centos 安装google protobuf

abloz 2012-03-29
2012-03-29

http://abloz.com

author:ablozhou date:2012.3.29

环境 cat /etc/redhat-release CentOS release 5.5 (Final) 下载 wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2 tar -jxvf protobuf-2.4.1.tar.bz2

编译安装 [zhouhh@Hadoop48 ~]$ cd protobuf-2.4.1 [zhouhh@Hadoop48 protobuf-2.4.1]$ [zhouhh@Hadoop48 protobuf-2.4.1]$ ./configure & make [root@Hadoop48 protobuf-2.4.1]# make install

安装python版的protobuf [root@Hadoop48 protobuf-2.4.1]# cd python [root@Hadoop48 python]# python setup.py build [root@Hadoop48 python]# python setup.py install

参考 http://code.google.com/p/protobuf/


如非注明转载, 均为原创. 本站遵循知识共享CC协议,转载请注明来源