phd 2015-01-26
在编译hadoop的时候需要安装protoc ,在网找了一下编译方法,记录下来
1 下载
https://code.google.com/p/protobuf/downloads/list
2 protobuf-2.5.0.tar.gz
tar -xzf protobuf-2.5.0.tar.gz
cd protobuf-2.5.0.tar.gz
./configure --prefix=/usr/local/protobuf
make
make check
make install
3 环境变量设置 vi /etc/profile
export PATH=$PATH:/usr/local/protobuf/bin/
export PKG_CONFIG_PATH=/usr/local/protobuf/lib/pkgconfig/
source /etc/profile