centos 安装google protobuf
时间:2016-12-27 14:47 来源:linux.it.net.cn 作者:IT
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/
(责任编辑:IT)
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/ (责任编辑:IT) |