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.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ZeroMQ是一个高性能、异步消息传递库,可以在不同的应用程序之间进行快速、可靠的通信。在Linux上安装ZeroMQ可以按照以下步骤进行操作: 1. 下载ZeroMQ的源代码包,可以从官方网站或者GitHub上获取。 2. 解压源代码包,并进入解压后的目录。 3. 执行以下命令安装依赖项: ``` sudo apt-get install libtool pkg-config build-essential autoconf automake ``` 4. 执行以下命令编译和安装ZeroMQ: ``` ./autogen.sh ./configure make sudo make install ``` 5. 安装完成后,可以使用以下命令验证ZeroMQ是否成功安装: ``` ldconfig -p | grep zmq ``` 如果输出中包含类似于`libzmq.so`的信息,则表示安装成功。 引用[1]中的内容是关于在运行ZeroMQ的Java示例代码时,可能需要添加`java.library.path`参数的说明。这个参数用于指定Java虚拟机加载本地库文件的路径。在运行ZeroMQ的Java示例代码时,如果出现`no XXX in java.library.path`的错误,可以按照引用[1]中的说明修改运行脚本,添加`-Djava.library.path`参数,并指定ZeroMQ库文件的路径。 引用[2]中的内容是关于在Linux上配置环境变量的说明。可以通过修改`~/.bashrc`文件来添加环境变量。在这个例子中,通过执行`echo CLASSPATH=/usr/local/share/java/zmq.jar:. >> ~/.bashrc`命令,将`CLASSPATH`环境变量设置为`/usr/local/share/java/zmq.jar:.`,其中`/usr/local/share/java/zmq.jar`是ZeroMQ的Java库文件的路径。 综上所述,要在Linux上安装ZeroMQ,可以按照上述步骤进行操作,并根据需要修改运行脚本和配置环境变量。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值