Version 0.2
Download source code of ØMQ lightweight messaging kernel (version 0.2). For documentation have a look at our repository page.
Supported platforms
ØMQ is intended to by POSIX compliant. The actual platforms we've tested it on were:
- Linux (tested on Debian 4.0, Ubuntu 7.10)
- FreeBSD (tested on 5.5 release)
- Solaris (tested on 8, 10)
- Mac OS X (tested on 10.5)
How to build it
Download the package and unpackage it:
tar -xzf zmq-0.2.tar.gz
Move to the unpacked folder and run configuration script:
cd zmq-0.2
./configure
Build the project:
make
Install the header files and libraries:
sudo make install
The libraries will be installed in the standard autotools' way:
By default, make install will install all the files in /usr/local/bin, /usr/local/lib etc. You can specify an installation prefix other than /usr/local using --prefix, for instance --prefix=$HOME.
Regression tests
To run regression tests (stored in tests subdirectory) run "make check" in the main directory.
Performance tests
Simple performance test that compares latency and throughput for TCP and ØMQ on your network is preprepared once you have built ØMQ project. For detailed instructions about running the tests have a look here.
How to link with ØMQ
You can link either statically (libzmq.a) or dynamically (libzmq.so). Note that ØMQ requires to be linked with pthreads library.
For example, to build your main.cpp with static ØMQ library, you can use following command gcc command line:
g++ -pthread -o main main.cpp libzmq.a
