Following steps in CentOS 6.x

Download cmake , use the binary one. such as:

Install Cmake

chmod +x


Get mysql zeromq plugin:

git clone

Update headers:

cd mysql-zmq-plugin

vi CMakeLists.txt , replace with your own headers



cmake .


Then you will get

sudo cp /path/to/mysql/plugin


Known issue:

If you got following complain:

/usr/bin/ld: cannot find -lzmq
collect2: ld returned 1 exit status
make[2]: *** [] Error 1
make[1]: *** [CMakeFiles/zeromq.dir/all] Error 2

you can

ln -s your_zmq_so to /lib64/