Install protobuf-2.5.0
1. Download
hadoop to communicate using protocol buffer, you need to download and install protobuf-2.5.0.tar.gz. Since protobuf-2.5.0.tar.gz can no longer be downloaded from the official website https://code.google.com/p/protobuf/downloads/list, I uploaded protobuf-2.5.0.tar.gz to Baidu Cloud disk for everyone to download, address: http://pan.baidu.com/s/1pJlZubT .
2. Installation
Use the tar -zxf protobuf-2.5.0.tar.gz command to decompress and get the source code of protobuf-2.5.0.
cd protobuf-2.5.0 Enter the directory
to set the compilation directory and enter the following two commands:
./configure --prefix=/usr/local/
make && make install
Configure environment variables:
sudo vi .bash_profile
Add configuration files:
export PROTOBUF=/usr/local/bin
export PATH=$PROTOBUF/bin:$PATH
Finally enter protoc --version command, if libprotoc 2.5.0 is displayed, the installation is successful
and there problem
Something went wrong? dyld: Library not loaded:
/User/JYH/Desktop/Hadoop-2.7.2/protobuf/lib/libprotobuf.9.dylib
Referenced from: /Users/JYH/Desktop/Hadoop-2.7.2/protobuf/bin/protoc
Reason : image not found
Abort trap: 6
Don't worry, first enter the command make clean, and then repeat the above setting to compile the directory, make and make install are fine.
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326566161&siteId=291194637
Ranking