ZeroMQ下载和安装

Download

What people say about ØMQ...

ØMQ comes as source code licensed under LGPLv3+. This page lists the official distributions built, released, and supported by iMatix. The community wiki may provide other packages. See which version you should be using.

Stable release candidate 3.2

The latest 3.2 distribution is v3.2.0-rc1, from 2012/06/05, (what changed?):

We recommend this release to anyone developing new applications with ØMQ. If you want to track the latest updates, use the release git master.

Stable release 2.2

The stable 2.2 distribution is v2.2.0, from 2012/04/04, (what changed?):

We recommend anyone still using 2.0 to upgrade to ØMQ/2.2. Get help on upgrading to 2.2. If you want to track the latest updates to this release, use the release git master.

Development master

You can get the latest development master at any time via git. If you're developing new apps, we recommend you test against the master regularly. On Linux, run ./autogen.sh after cloning this repository.

Previous releases

All past and current releases, including historic versions, are online at download.zeromq.org, with MD5 and SHA-1 checksums.

To build on UNIX-like systems

If you have free choice, the most comfortable OS for developing with ØMQ is probably Ubuntu.

  1. Make sure that libtool, autoconf, automake are installed.
  2. Check whether uuid-dev package, uuid/e2fsprogs RPM or equivalent on your system is installed.
  3. Unpack the .tar.gz source archive.
  4. Run ./configure, followed by make.
  5. To install ØMQ system-wide run sudo make install.
  6. On Linux, run sudo ldconfig after installing ØMQ.

To see configuration options, run ./configure --help. Read INSTALL for more details.

To build on Windows

  1. You need Microsoft Visual C++ 2008 or newer.
  2. Unpack the .zip source archive.
  3. In Visual C++ open the solution builds\msvc\msvc.sln.
  4. Build the solution.
  5. ØMQ libraries will be in the lib subdirectory.

Language bindings

ØMQ comes with the low-level C API. High-level bindings exist in 40+ languages including Python, Java, PHP, Ruby, C, C++, C#, Erlang, Perl, and more.

For complete list of language bindings have a look here.

Tuning ØMQ

This wiki page holds tips on tuning ØMQ for your platform. You can add your own tips as you discover them.

OpenPGM

To enable the OpenPGM extension on supported platforms use the --with-pgm option to configure.

To use a non-bundled version of OpenPGM, copy the libpgm tarball into foreign, i.e.

zeromq2-1/
  foreign/
    openpgm/
      libpgm-5.1.115~dfsg.tar.gz

Then run configure as follows:

$ cd zeromq2-1
$ ./configure --with-pgm=libpgm-5.1.115~dfsg

The name needs to match the tarball name.


### 下载 ZeroMQ 对于 Windows 操作系统的用户来说,可以从官方网址获取 ZeroMQ 的压缩包。以版本 `zeromq-4.0.5` 为例,具体的下载链接为:http://download.zeromq.org/zeromq-4.0.5.zip[^1]。 ### 编译 ZeroMQ 解压所获得的源码文件后可以直接进入编译环节而无需额外安装操作。针对 Visual Studio 用户而言,在路径 `zeromq-4.0.5/builds/msvc/msvc.sln` 中找到解决方案文件并打开它来进行编译工作;这一步骤将会生成所需的动态库(`libzmq.dll`)以及静态库(`libzmq.lib`) 文件。 然而需要注意的是,直接通过 VS 进行编译可能不是最优的选择因为该方法已经有一段时间未曾更新维护过,并且可能会遇到一些错误提示[^3]。因此更推荐的方式是利用像 vcpkg 或者 CMake 工具来完成这一过程: #### 使用 Vcpkg 安装 Vcpkg 是由微软开发的一款跨平台C++ 库管理工具,能够简化第三方依赖项集成流程。以下是基于 vcpkg 来部署 ZeroMQ 的简单指南: ```bash git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install ./vcpkg install zeromq:x64-windows ``` 上述命令会自动处理好所有必要的配置构建任务,使得开发者可以更加专注于应用程序本身的实现而不是底层环境搭建问题。 #### 使用 CMake 构建 如果倾向于手动控制整个项目结构,则可以通过 CMake 来定制化地创建 Makefile 并执行相应的 make 命令从而达到相同的效果。这里给出一段基本的操作示范: ```cmake # 创建一个新的目录用于存放构建产物 mkdir build && cd build # 执行 cmake 配置阶段 cmake .. # 开始实际的编译过程 cmake --build . --config Release ``` 以上两种方式均能有效地帮助在 Windows 上顺利完成 ZeroMQ 的本地化设置,其中前者更为简便快捷适合大多数场景下的需求,后者则提供了更大的灵活性供高级使用者探索更多可能性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值