zoukankan      html  css  js  c++  java
  • 服务搭建尝试

    1.

    http://www.tuicool.com/articles/VfQfM3

    1. 下载protobuf源代码(当前最新版本为:2.5.0)  #cd /opt  #wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz

    2. 解压,编译,安装  #tar zxvf protobuf-2.5.0.tar.gz  #cd protobuf-2.5.0  #./configure  #make  #make check  #make install

    3. 继续安装protobuf的python模块(如果不用python,可跳过这一步)  #cd ./python  #python setup.py build  #python setup.py test  #python setup.py install

    4. 安装完成,验证Linux命令  #protoc –version

    5. 验证Python模块是否被正确安装  #python  >>>import google.protobuf  如果没有报错,说明安装正常。

    Note:

    error: package directory 'google/protobuf/compiler' does not exist

    解决办法:在google/protobuf/下创建compiler文件夹

    再次在protobuf文件夹下运行:python setup.py install

  • 相关阅读:
    Powershell 音乐播放
    Powershell指令集_2
    Powershell指令集_2
    Powershell 邮件发送
    Powershell 邮件发送
    Oracle 11g 关闭内存自动管理
    Oracle 11g 内存手动管理
    Oracle 内存参数调整
    RESTful三理解
    RESTful三理解
  • 原文地址:https://www.cnblogs.com/finallyliuyu/p/6245406.html
Copyright © 2011-2022 走看看