• EdgexGo2.0编译-1 ZMQ安装


    虽然EdgexGo2.0中的version.go里是1.3,但实际上对应的是2.0版本,具体解释如下

    下面开始相关组件ZMQ安装 

    1、下载

    http://download.zeromq.org/

    下载 https://archive.org/download/zeromq_4.1.4/zeromq-4.1.4.tar.gz

    2、解压

    tar -xvf zeromq-4.1.4.tar.gz

    3、进入目录

    cd zeromq-4.1.4/

    4、安装库

    sudo apt-get install libzmq3-dev

    5、编译

    ./configure
    sudo make 
    sudo make install
    

     6、pkg-config错误,有的解决办法比较复杂,简单的直接apt-get install golang一次就可以了。

    The pkg-config script could not be found or is too old.  Make sure it
    is in your PATH or set the PKG_CONFIG environment variable to the full
    path to pkg-config.
    

     其他解决办法

    pkg-config
    go get github.com/rjeczalik/pkgconfig/cmd/pkg-config
    
    ZeroMQ
    Several EdgeX Foundry services depend on ZeroMQ for communications by default.
    
    The easiest way to get and install ZeroMQ on Linux is to use this setup script.
    
    For macOS, use brew:
    
    brew install zeromq
    For directions installing ZeroMQ on Windows, please see the Windows documentation.
    
    pkg-config
    The necessary file will need to be added to the PKG_CONFIG_PATH environment variable.
    
    On Linux, add this line to your local profile:
    
    export PKG_CONFIG_PATH=/usr/local/Cellar/zeromq/4.2.5/lib/pkgconfig/
    For macOS, install the package with brew:
    
    brew install pkg-config
    

      

      

    1、建了一个小群:616945527(软件), 欢迎大家加入,加群口令abc123,硬件嵌入式开发者推荐75764412(单片机)。
    闲置域名www.nsxz.com出售(等宽等高字符四字域名,可组合多种有意义词语)。
  • 相关阅读:
    adb 连接小米1S真机调试
    【Docker】容器中找不到vi命令
    【BIEE】导出数据报错
    【SPSS】软件介绍
    【Oracle】查询字段的长度、类型、精度、注释等信息
    【BIRT】使用rptlibrary设置统一数据源
    【Oracle】迁移含有BLOG类型的字段的表
    【Linux】war包的解压与压缩
    【docker】挂载web应用
    【Docker】安装tomcat并部署应用
  • 原文地址:https://www.cnblogs.com/zhaogaojian/p/14983155.html
Copyright © 2020-2023  润新知