2017-08-08 1 views
2

Ich habe installieren ZMQ 4.2.2 und zusätzlich installierte php5-ZMQ Version 1.1.3Installation der ZeroMQ funktioniert nicht auf PHP 5.6 Ubuntu 14.04

PHP-Version ist 5.6 und OS-Version ist Ubuntu 14.04

Hinzugefügt Erweiterung meiner

/etc/php/5.6/fpm/php.ini and /etc/php/5.6/cli/php.ini extension=zmq.so 

und bei dem Versuch, es zu laufen, heißt es

PHP Warning: PHP Startup: zmq: Unable to initialize module
Module compiled with module API=20121212
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
PHP Fatal error: Class 'ZMQContext' not found in /home/server/vendor/react/zmq/src/React/ZMQ/Context.php on line 15

Ich weiß nicht, was ich falsch mache.

Antwort

1

Ok. Wenn jemand in dem selben stecken bleibt wie ich den nächsten Trick mache.

sudo pecl uninstall zmq-beta 
sudo apt-get remove php5-dev 
sudo apt-get install php5.6-dev 
sudo pecl config-set php_bin /usr/bin/php5.6 

wird es sagen, dass

WARNING: php_bin /usr/bin/php5 appears to have a suffix 5.6, but config variable php_suffix does not match

sudo pear config-set php_suffix 5.6 
pecl install zmq-beta 

, dass der Rest tun.

Verwandte Themen