参考サイト
http://d.hatena.ne.jp/chobi_e/20100922/1285164858
wget http://www.zeromq.org/local--files/area:download/zeromq-2.0.9.tar.gz tar zxf zeromq-2.0.9.tar.gz cd zeromq-2.0.9 ./configure make && make install cd .. git clone git://github.com/mkoppanen/php-zmq.git cd php-zmq phpize && ./configure make && make install echo 'extension=zmq.so' > /etc/php.d/zeromq.ini service httpd restart
しかし zeromq の ./configure で以下のエラー
configure: error: cannot link with -luuid, install uuid-dev.
libuuid-devel をインストールして解決
# yum install libuuid-devel
今度は phpize && ./configure でエラー
/bin/sh /root/php-zmq/libtool --mode=compile cc -I. -I/root/php-zmq -DPHP_ATOM_INC -I/root/php-zmq/include -I/root/php-zmq/main -I/root/php-zmq -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/php-zmq/zmq.c -o zmq.lo libtool: compile: cc -I. -I/root/php-zmq -DPHP_ATOM_INC -I/root/php-zmq/include -I/root/php-zmq/main -I/root/php-zmq -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/php-zmq/zmq.c -fPIC -DPIC -o .libs/zmq.o /root/php-zmq/zmq.c: In function ‘zim_zmqsocket_getsockettype’: /root/php-zmq/zmq.c:1021: error: ‘ZMQ_TYPE’ undeclared (first use in this function) /root/php-zmq/zmq.c:1021: error: (Each undeclared identifier is reported only once /root/php-zmq/zmq.c:1021: error: for each function it appears in.) /root/php-zmq/zmq.c: In function ‘zim_zmqpoll_poll’: /root/php-zmq/zmq.c:1197: error: ‘PHP_ZMQ_TIMEOUT’ undeclared (first use in this function) /root/php-zmq/zmq.c: In function ‘zim_zmqdevice_setidletimeout’: /root/php-zmq/zmq.c:1343: error: ‘PHP_ZMQ_TIMEOUT’ undeclared (first use in this function) /root/php-zmq/zmq.c: In function ‘zm_startup_zmq’: /root/php-zmq/zmq.c:1904: error: ‘ZMQ_DEALER’ undeclared (first use in this function) /root/php-zmq/zmq.c:1905: error: ‘ZMQ_ROUTER’ undeclared (first use in this function) make: *** [zmq.lo] エラー 1
とりあえずここまで。
—-
追記:
QMQ Download の 最新 Stable ではなく、一つ前の Stable Release 3.2.4 を使用したらすんなりインストールが完了しました。
単純に Version 不整合の可能性な気がします。
解決して良かった。