zeromq / zmq install php biding

use ubuntu server 14


# use ubuntu 14 server

# get folder to work
mkdir /media/sf_websocket/push -p
cd /media/sf_websocket/push

# install php-dev to run phpize
sudo apt-get install php5-dev pkg-config libzmq-dev

# clone php-zmq from github
git clone git://github.com/mkoppanen/php-zmq.git

cd php-zmq

# run phpize to generate and configure script and run
sudo phpize && ./configure

# install
sudo make
sudo make install

# add extension to /etc/php5/(apache2|cli)/php.ini
# http://blog.alexandervn.nl/2012/05/03/install-zeromq-php-ubuntu/
extension=zmq.so

# download script with composer
# download composer.phar

curl -sS https://getcomposer.org/installer | php

# create file composer.json

nano composer.json

# input script
{
  "autoload": {
     "psr-0": {
       "MyApp": "src"
      }
   },
  "require": {
    "cboden/ratchet": "0.3.*",
     "react/zmq": "0.2.*|0.3.*"
   }
}

# download script
php composer.phar install

Published by

G3n1k

just to remember what i had known :)

One thought on “zeromq / zmq install php biding”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s