Questions tagged [phpize]

A tool to prepare a PHP extension for compiling

phpize is a shell script to prepare PHP extension for compiling.

Options

--clean        Remove all created files
--help         Prints usage information
--version
-v             Prints API version information

It is included in package php5-dev.

Man Page: http://www.manpagez.com/man/1/phpize/

32 questions
26
votes
4 answers

Unable to use PHPIZE after update to MacOS Mojave

What i should do when i run PHPIZE and get the error below ? I already installed xcode command line tools. grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep:…
delphirules
  • 6,443
  • 17
  • 59
  • 108
7
votes
1 answer

xdebug for php 7 on ubuntu 14.04

I'm trying to get xdebug working on PHP 7. I'm build the xdebug.so file from version http://xdebug.org/files/xdebug-2.4.0rc4.tgz. The phpize output looks correct (Zend Extension Api No: 320151012) however I get Xdebug requires Zend Engine API…
Force Hero
  • 2,674
  • 3
  • 19
  • 35
5
votes
1 answer

How does one build the mysql extension for PHP 5.6?

I am working to install PHP 5.6 and 7.0 side-by-side to facilitate migrating from PHP 5 to 7. I am using Ondřej Surý's Ubuntu PPA, https://launchpad.net/~ondrej/+archive/ubuntu/php , which provides co-installable versions of PHP 5.6 and 7.0. Both…
Ben Johnson
  • 2,507
  • 3
  • 29
  • 29
4
votes
0 answers

PHP 7.3.8. ZIP extension on MacOS Catalina 10.15

I’m trying to use the builtin PHP in MacOS Catalina 10.15 by compiling the ZIP extension by myself. In the new MacOS Catalina, the phpize tool is no longer usable since inside it contains an invalid path to the PHP libraries. The volume /usr is…
Viames Marino
  • 41
  • 1
  • 5
4
votes
2 answers

add yaml extension to php on using official Alpine Docker image

I'm using this offical php Docker image: https://github.com/docker-library/php/blob/76a1c5ca161f1ed6aafb2c2d26f83ec17360bc68/7.1/alpine/Dockerfile Now I need to add support for yaml extension, that is not bundled with php. I see the base image I'm…
Michele Carino
  • 1,043
  • 2
  • 11
  • 25
4
votes
0 answers

Docker File and execute phpize error

When I try to build Docker File and execute phpize command, I get the error below. Cannot find config.m4. Make sure that you run '/usr/bin/phpize' in the top level source directory of the module Can't I use phpize in Docker file? RUN apt-get…
Hax0r
  • 1,722
  • 4
  • 25
  • 43
4
votes
4 answers

Installing xDebug on xampp on mac: phpize not working

I am using xampp5.6.15 on OS 10.11. I was following this instruction to install xDebug. My "tailored installation instruction" is as follows: In this instruction, it doesn't mention where to put the downloaded tgz file, so I just left it where it…
shenkwen
  • 3,536
  • 5
  • 45
  • 85
3
votes
2 answers

Fixing m4 on MAC OS 10.14.5

I'm having an issue with pecl which is erring out saying phpize had failed. The problem ultimately seems to be with m4. Error is autom4te: need GNU m4 1.4 or later: /Applications/MAMP/Library/bin/m4 When I run "which m4" I get…
user3521590
  • 111
  • 3
  • 6
2
votes
1 answer

config.m4 file is missing when compiling gmp php extension in lampp suite

I am trying to compile the gmp for lampp suite with php 7.1.7 with api version 20160303 . I downloaded gmp-6.1.2.tar.bz2 used bzip2 -dk gmp-6.1.2.tar.bz2 to get tar file then tar -xvvf gmp-6.1.2.tar then cd gmp-6.1.2/. When i run…
2
votes
0 answers

Unabl to install PHP extension OpenSSL on OS X using phpize

I have been trying to install PHP Version 5.5.34 extension OpenSSL for Magento2 because it won't pass the Magento process installation if I don't have OpenSSL extension. I don't seen to be able to install neither way with phpize or compiling PHP…
Juliano Vargas
  • 284
  • 2
  • 19
2
votes
1 answer

Compiling php extensions for MAMP

I need to install a couple of PHP extensions, like memcache and geoip, on MAMP 3.5, for PHP 5.6.10. What I'm doing is to run phpize: /Applications/MAMP/bin/php/php5.6.10/bin/phpize Which outputs: Configuring for: PHP Api Version: …
Ineze
  • 389
  • 4
  • 17
2
votes
1 answer

Error when running phpize command

I'm trying to install xdebug extenssion from source but when I run the phpize command I get the following errors: /Applications/XAMPP/xamppfiles/bin/phpize: line 61: grep: command not found /Applications/XAMPP/xamppfiles/bin/phpize: line 62: grep:…
King Julien
  • 10,981
  • 24
  • 94
  • 132
1
vote
1 answer

php-devel package required but is already installed

I am running PHP 7.2 and am trying to install oci8 pecl install oci8 results in a download but it fails when running phpize with the following message: running: phpize Can't find PHP headers in /opt/remi/php72/root/usr/include/php The php-devel…
DrBorrow
  • 950
  • 12
  • 24
1
vote
0 answers

"error: #error "OpenCV 4.x+ requires enabled C++11 support"

How can I fix this? I installed OpenCV 4.1.0 without a problem on Centos 7.6 following this guide: https://linuxize.com/post/how-to-install-opencv-on-centos-7/ Now I'm trying to install php-opencv https://github.com/hihozhou/php-opencv And it's…
Codemonkey
  • 4,455
  • 5
  • 44
  • 76
1
vote
1 answer

"Cannot find script file" error but file is actually there

Disclaimer: am beginner. I'm trying to build this certain PHP extension on Visual Studio Code 2017 in the Integrated Terminal, and I tried using the phpize command (there is an environment variable for the directory). It keeps…
BeeD
  • 51
  • 5
1
2 3