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

  

  

 

posted @ 2021-07-07 19:07  zhaogaojian  阅读(236)  评论(0编辑  收藏  举报