protobuf 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 to enter the directory

 

    If you want the output directory to be /home/work /protobuf/ after successful compilation, enter the following two commands:

 

    ./configure --prefix=/home/work /protobuf/  

 

    make && make install

 

    After the compilation is successful, add export PATH= /home/work /protobuf/bin:$PATH to the environment variable

 

    Finally, enter the protoc --version command. If libprotoc 2.5.0 is displayed, the installation is successful

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326447636&siteId=291194637
Recommended