Topic: php72 zmq problem

Hello and thank you very much for a super repo.

I'm having an issue with installing zmq for php72.

System: CentOS Linux release 7.6.1810 (Core)

I followed the wizard to replace the dafault php version.

yum install dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php72
yum update

Then I install zmq:
yum install php-pecl-zmq.x86_64

and test:
>php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'zmq.so' (tried: /usr/lib64/php/modules/zmq.so (libzmq.so.5: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/zmq.so.so (/usr/lib64/php/modules/zmq.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.2.17 (cli) (built: Apr  3 2019 10:02:16) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.17, Copyright (c) 1999-2018, by Zend Technologies

the zmq.so files are there:
ll -h /usr/lib64/php/modules/zmq*
-rwxr-xr-x 1 root root 91K Aug 30  2017 /usr/lib64/php/modules/zmq.so

Could the zmq.so be broken? How do I debug this further ?

Regards
Supergoof

Re: php72 zmq problem

Indeed I can reproduce

# dnf install php-zmq
===============================================================================================================
 Package                         Arch           Version                         Repository                Size
===============================================================================================================
Installing:
 php-pecl-zmq                    x86_64         1.1.3-6.el7.remi.7.2            remi-php72                50 k
Installing dependencies:
 sclo-cassandra3-runtime         x86_64         1.0-17.el7                      centos-sclo-sclo         1.2 M
 sclo-cassandra3-zeromq          x86_64         4.1.6-7.el7                     centos-sclo-sclo         220 k

Transaction Summary
===============================================================================================================
Install  3 Packages

Total download size: 1.4 M
Installed size: 858 k
Is this ok [y/N]: y

# php --ri zmq
PHP Warning:  PHP Startup: Unable to load dynamic library 'zmq.so' (tried: /usr/lib64/php/modules/zmq.so (libzmq.so.5: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/zmq.so.so (/usr/lib64/php/modules/zmq.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Extension 'zmq' not present.

This sclo-cassandra3 collection is broken.

So, manual fix:

# dnf install zeromq
===============================================================================================================
 Package                  Arch                     Version                        Repository              Size
===============================================================================================================
Installing:
 zeromq                   x86_64                   4.1.4-6.el7                    epel                   556 k

Transaction Summary
===============================================================================================================
Install  1 Package

Total download size: 556 k
Installed size: 2.1 M
Is this ok [y/N]: y

# php --ri zmq

zmq

ZMQ extension => enabled
ZMQ extension version => 1.1.3
libzmq version => 4.1.4
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php72 zmq problem

Brilliant, installing zeromq fixed it :-)

>php --ri zmq

zmq

ZMQ extension => enabled
ZMQ extension version => 1.1.3
libzmq version => 4.1.4

Thank you very much

Re: php72 zmq problem

Reported => https://bugs.centos.org/view.php?id=16037 and https://github.com/sclorg-distgit/sclo- … 3/issues/1

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi