Install ZeroMQ plugin for MySQL
Following steps in CentOS 6.x
Download cmake , use the binary one. such as: cmake-3.2.3-Linux-x86_64.sh
http://www.cmake.org/download/
Install Cmake
chmod +x cmake-3.2.3-Linux-x86_64.sh
./cmake-3.2.3-Linux-x86_64.sh
Get mysql zeromq plugin:
git clone https://github.com/netkiller/mysql-zmq-plugin.git
Update headers:
cd mysql-zmq-plugin
vi CMakeLists.txt , replace with your own headers
”INCLUDE_DIRECTORIES(/usr/local/mysql-xxx/include)”
”INCLUDE_DIRECTORIES(/usr/local/zeromq-xxx/include)”
cmake .
make
Then you will get libzeromq.so
sudo cp libzeromq.so /path/to/mysql/plugin
Refer:
http://zeromq.org/event:zeromq-for-mysql
Known issue:
If you got following complain:
/usr/bin/ld: cannot find -lzmq collect2: ld returned 1 exit status make[2]: *** [libzeromq.so] Error 1 make[1]: *** [CMakeFiles/zeromq.dir/all] Error 2
you can
ln -s your_zmq_so to /lib64/libzmq.so