http://alexandervn.nl/2012/05/03/install-zeromq-php-ubuntu/
Make sure you have all the packages:
sudo apt-get install build-essential libtool autoconf \ uuid-dev php5 php5-dev pkg-config git
Installing ZeroMQ:
wget http://download.zeromq.org/zeromq-2.1.11.tar.gz tar -xvzf zeromq-2.1.11.tar.gz cd zeromq-2.1.11.tar.gz ./configure make sudo make install sudo ldconfig
Installing the PHP binding:
git clone git://github.com/mkoppanen/php-zmq.git cd php-zmq phpize && ./configure make sudo make install
And finally add the following line to your /etc/php5/(apache2|cli)/php.ini:
extension=zmq.so
Testing if it works, add this to zmq.php:
And run:
php zmq.php
Log in to post a comment.
http://alexandervn.nl/2012/05/03/install-zeromq-php-ubuntu/
Make sure you have all the packages:
sudo apt-get install build-essential libtool autoconf
\ uuid-dev php5 php5-dev pkg-config git
Installing ZeroMQ:
wget http://download.zeromq.org/zeromq-2.1.11.tar.gz
tar -xvzf zeromq-2.1.11.tar.gz
cd zeromq-2.1.11.tar.gz
./configure
make
sudo make install
sudo ldconfig
Installing the PHP binding:
git clone git://github.com/mkoppanen/php-zmq.git
cd php-zmq
phpize && ./configure
make
sudo make install
And finally add the following line to your /etc/php5/(apache2|cli)/php.ini:
extension=zmq.so
Testing if it works, add this to zmq.php:
And run:
php zmq.php