Fatal error: Class 'React\ZMQ\Context'

374 views
Skip to first unread message

cedric....@gmail.com

unread,
Feb 9, 2015, 10:48:04 AM2/9/15
to ratch...@googlegroups.com
Hi guys, I hope you're able to help me.

I get the following error:
root@debian:/usr/local# php bin/push-server.php
PHP Fatal error:  Class 'React\ZMQ\Context' not found in /usr/local/bin/push-server.php on line 8

Following Line is Line 8:
$context = new React\ZMQ\Context($loop);

Before I tried the push-server, i were able to do the chat-server.

If I do php -m | grep z that's the result:
root@debian:/usr/local# php -m | grep z
bz2
tokenizer
zip
zlib

And I think thats my fault. Shouldnt be here a zmq?
I'm not quite sure but dont know how to solve it.

I downloaded http://zeromq.org/intro:get-the-software as well and made "./configure", "make", "make install", etc. There was no error or something like this.

Hope you can help me.

PS: If I have to add something in the php.ini please tell me where and what. (:

Kind Regards
Fr34k

Victor Caballero

unread,
Feb 28, 2015, 6:16:22 AM2/28/15
to ratch...@googlegroups.com, cedric....@gmail.com
I'm not familiar with ZeroMQ and I've never installed it (but I think I'll do in the near future), and... I think you should have to include a .so (the zmq library) library in your php.ini file.

Hope it helps a little bit.
Reply all
Reply to author
Forward
0 new messages