Topic: phpize not available in php72-php-devel

Dear all,

I am running a CentOs 7.2 machine and installed php72-php-devel in order to compile php extensions. But I found no phpize in the package. What I am doing wrong?

My installed php72 packages:

$ rpm -qa php72\*
php72-runtime-2.0-1.el7.remi.x86_64
php72-php-devel-7.2.21-1.el7.remi.x86_64
php72-php-json-7.2.21-1.el7.remi.x86_64
php72-php-cli-7.2.21-1.el7.remi.x86_64
php72-php-common-7.2.21-1.el7.remi.x86_64


Bye, Hoschi

Re: phpize not available in php72-php-devel

phpize is there.


Have you enable the SCL ? (using the scl or module command)

$ scl enable php72 bash
$ which phpize
/opt/remi/php72/root/usr/bin/phpize

$ module load php72
$ which phpize
/opt/remi/php72/root/usr/bin/phpize

BTW, do you need multiple PHP versions ?
Else see the wizard instructions and use "single version" installation way which is far more simpler
https://rpms.remirepo.net/wizard/

> in order to compile php extensions.

Which extensions ?
Most of extensions are already in the repositoty, see https://blog.remirepo.net/pages/PECL-ex … RPM-status

> I am running a CentOs 7.2

Please update to latest (7.6)

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: phpize not available in php72-php-devel

Thanks, that did the trick. I was not aware I had to enable SCL.

I am already using CentOS 7.6 (the 7.2 was just a typo).

I want to do some performance tests with this extension: https://github.com/iliaal/php_excel/


Thanks

Re: phpize not available in php72-php-devel

You need to enable the SCL using the SCL/module command.
spanish dictionary