zeromq / php-zmq

ZeroMQ for PHP
http://pecl.php.net/zmq
Other
551 stars 119 forks source link

Requested PHP extension zmq is missing from your system #188

Open tisuchi opened 6 years ago

tisuchi commented 6 years ago

Referring to the issue no https://github.com/zeromq/zeromq4-x/issues/164

Schamschula commented 4 years ago

Very frustrating issue. I've installed php-zmq locally via MacPorts

See https://github.com/Schamschula/macports/tree/master/php/php-zmq

but when I try to install jupyter-php I get the following (I intentionally reloaded the zmq.ini file to show that it had already been loaded, hence the warning)

neptune:php-jupyter marius$ /opt/local/bin/php73 --php-ini /opt/local/var/db/php73/zmq.ini ./jupyter-php-installer.phar -vvv install
PHP Warning:  Module 'zmq' already loaded in Unknown on line 0

Deprecation warning: Your package name jupyter-php-instance is invalid, it should have a vendor name, a forward slash, and a package name. The vendor and package name can be words separated by -, . or _. The complete name should match "^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$". Make sure you fix this as Composer 2.0 will error.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - litipk/jupyter-php 0.2.1 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
    - litipk/jupyter-php 0.2.0 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
    - litipk/jupyter-php 0.1.7 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
    - litipk/jupyter-php 0.1.6 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
    - litipk/jupyter-php 0.1.5 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
    - litipk/jupyter-php 0.1.4 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
    - litipk/jupyter-php 0.1.3 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
    - litipk/jupyter-php 0.1.2 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
    - litipk/jupyter-php 0.1.1 requires ext-zmq * -> the requested PHP extension zmq is missing from your system.
    - litipk/jupyter-php 0.1 requires composer/composer 1.0.0-alpha11 -> satisfiable by composer/composer[1.0.0-alpha11] but these conflict with your requirements or minimum-stability.
    - Installation request for litipk/jupyter-php 0.* -> satisfiable by litipk/jupyter-php[0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.2.0, 0.2.1].

ERROR: Error while trying to download Jupyter-PHP dependencies with Composer.

My guess is that this some sort of PATH issue.