zoukankan      html  css  js  c++  java
  • Google protobuf安装

    1:需要安装sudo apt-get install x11-apps libwayland-ltst-client0 libtxc-dxtn-s2tc0 x11-session-utils
      x11-xfs-utils libxrandr-ltst2 libwayland-ltst-server0 xinit libfs6
      libxcb-xfixes0 libllvm3.4
    2: sudo apt-get install libtool

    aclocal; autoconf; automake --add-missing; ./configure; make;

     

        使用tar -zxf protobuf-2.5.0.tar.gz命令解压后得到是 protobuf-2.5.0的源码,

         cd protobuf-2.5.0 进入目录

        假如 你希望编译成功后输出的目录 为 /home/work /protobuf/ 则输入如下两条命令:

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

        make && make install

        编译成功后将export PATH= /home/work /protobuf/bin:$PATH加入到环境变量中

        最后输入  protoc --version命令,如显示libprotoc 2.5.0则安装成功

     
  • 相关阅读:
    Single Number II
    Best Time to Buy and Sell Stock
    Linked List Cycle
    Single Number
    Max Points on a Line
    Strategy
    LRU Cache
    Word Break II
    Text Justification
    Median of Two Sorted Arrays
  • 原文地址:https://www.cnblogs.com/oracleloyal/p/5485345.html
Copyright © 2011-2022 走看看