ZeroMQ / ØMQ / 0MQ 如何开始?

发布于 2024-09-24 00:04:10 字数 1018 浏览 0 评论 0原文

我正在尝试使用 C# 绑定 在 Windows 上使用 ZeroMQ / ØMQ / 0MQ(您喜欢的任何一个)。有没有入门资料?我是否需要在 Windows 上注册 ZeroMQ DLL 或其他东西才能运行 C# 绑定示例 (local_lat / remote_lat)?

更新: 几个小时后,我已经在 Ubuntu 10.04 上运行了 Zeromq / ruby​​。我对这篇博文发表了评论指示如何在 Ubuntu 10.04 上安装 Zeromq / ruby​​。 但我仍在尝试弄清楚如何在 Windows / C# .NET 上运行一个简单的示例。

在 ubuntu 10.04 上安装 rvm

http:// /www.christopherirish.com/2010/08/25/how-to-install-rvm-on-ubuntu-10-04/

安装zeromq

http://gist.github.com/574656

如果安装 Zeromq 后出现错误,请尝试此更新库

http://www.apparatusproject.org/blog/tag/zeromq/

I am trying to use ZeroMQ / ØMQ / 0MQ (which ever you prefer) on Windows using C# Binding. Is there any beginner materials out there? Do I need to register ZeroMQ DLL on Windows or something in order to run the C# Binding samples (local_lat / remote_lat)?

Updated:
After a few hours I've got zeromq / ruby working on Ubuntu 10.04. I've left a comment on this blog post indicating how to get zeromq / ruby installed on Ubuntu 10.04. But I am still trying to figure out how to run a simple sample on Windows / C# .NET.

install rvm on ubuntu 10.04

http://www.christopherirish.com/2010/08/25/how-to-install-rvm-on-ubuntu-10-04/

install zeromq

http://gist.github.com/574656

if you get error after zeromq is installed, try this one to update the library

http://www.apparatusproject.org/blog/tag/zeromq/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

守护在此方 2024-10-01 00:04:10

ZeroMQ CLR 绑定的新版本可在 clrzmq2 获得。

新绑定的原因是它是不向后兼容第一个,但它是更惯用的 C#,并且支持 2.0.9 的完整功能集。

它也是跨平台的,应该在 Windows 和 Linux、x86/-64 上运行。

0MQ 指南中的许多示例现已移植到 C#,应该会在第二天左右完成第 3 章。

如果出现问题,请在 github 上提出问题或联系 ZeroMQ 开发者邮件列表。

A new version of the ZeroMQ CLR binding is available at clrzmq2

The reason for the new binding is that it is not backwards compatible with the first, but it is more idiomatic C#, and it supports the full feature set of 2.0.9.

It is also cross platform and should run on both Windows and Linux, x86/-64.

A lot of the examples from the 0MQ guide are now ported to C#, should be up to chapter 3 within the next day or so.

If something isn't working raise an issue on github or contact the ZeroMQ dev mailing list.

<逆流佳人身旁 2024-10-01 00:04:10

我刚刚开始在我的机器上使用 0MQ我将带有预编译库(来自 github 的 clrzmq 和 zmq-2.0.9)的简单服务器/客户端上传到 bitbucket。我希望这也能帮助您在 Windows 上开始使用 0MQ

编辑:自从这个问题和答案以来发生了很多事情。现在,安装和使用 ZeroMQ 变得更加容易

I just started to play with 0MQ on my machine. I uploaded the simple server/client with pre-compiled libraries (clrzmq and zmq-2.0.9 from github) to bitbucket. I hope this helps you also to get started with 0MQ on Windows.

EDIT: A lot has happend since this question and answer. Now it is way easier to install and use ZeroMQ.

时光瘦了 2024-10-01 00:04:10

如果您熟悉 Docker 请查看。它将运行 zguide 中的 hello world C++ 示例。 Docker 容器负责设置和配置 ZMQ 和 CMake 所需的库,并且完全可移植。

我还在此处创建了一个 C 示例,

两者都使用 ZeroMQ版本 4.2.1 和 CMake 3.6,但我在自述文件中提到了如何更改这些值。它们会让你启动并运行,然后你可以深入研究 Docker 文件,看看需要哪些步骤才能在 Ubuntu 14.04 上运行。

或者查看存储库并检查 zmq-hello-world-client-nodezmq-hello-world-client-node 中的 DockerfileCMakeLists.txt 文件。代码>zmq-hello-world-server-node。 Dockerfile 列出了在 Ubuntu 14.04 上设置所需库所需的步骤,CMakeLists.txt 文件找到必要的包含并创建一个 make 文件,该文件将在构建项目时链接它们

If you're familiar with Docker check this out. It will run the hello world C++ example from the zguide. The Docker containers take care of setting up and configuring the libraries needed by ZMQ and CMake and are completely portable.

I also created an example for C here

Both of these use ZeroMQ version 4.2.1 and CMake 3.6, but I mention in the readme how to change these values. They will get you up and running and then you can dig into the Docker files to see what steps are required to get things running with Ubuntu 14.04.

Alternatively take a look at the repository and examine the Dockerfile and CMakeLists.txt files in either zmq-hello-world-client-node or zmq-hello-world-server-node. The Dockerfile lists the steps needed to setup the required libraries on Ubuntu 14.04, the CMakeLists.txt file finds the necessary includes and creates a make file that will link them in when you build the project

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文