4

I tried using ZeroMQ with PHP on a Mac OS Yosemite. I tried installing it through composer and below is the error message I keep getting

  Problem 1
- react/zmq v0.3.0 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
- react/zmq v0.2.0 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
- Installation request for react/zmq 0.2.*|0.3.* -> satisfiable by react/zmq[v0.2.0, v0.3.0].

From my observation, I feel I have to install the ZeroMQ PHP extension, but all efforts was abortive. I also followed up with this link http://www.andrew-kirkpatrick.com/2013/10/install-zeromq-on-mac-with-php-pecl-extension/ I'm running my server on MAMP3 for MAC OS

Thanks in advance.

Igbalajobi Jamiu
  • 261
  • 3
  • 14
  • Have you read this page? There's the error message and the answer, how to solve it. – Gerifield Dec 23 '14 at 23:16
  • Stop using MAMP. Use Homebrew or Macports. After you have one of those installed then install php a webserver (I'd recommend apache or nginx) and whatever extensions and other binaries you need. Then install zmq extension. Then after all that install ZeroMQ via composer. – prodigitalson Dec 23 '14 at 23:16
  • I have finally got it working by doing this https://stackoverflow.com/a/49654807/3815702 – Rakesh James Apr 04 '18 at 15:27

1 Answers1

0

Firstly you need to install the software: download current version and build on your system here

After this you need to bind zmq library with php: here you can find a few ways to do it, usually I do it from github. Hope it helps

Ruslan
  • 29
  • 5