If, when you type
# phpize
you get this:
-bash: phpize: command not found
or this:
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
it means that... yes, this utility isn't installed. But if you try to search for it via aptitude or yum (for Debian or CentOS respectively), you'll be surprised to find that no such thing exists in the repos.
The thing is that phpize comes bundled with the php-devel package, which you need to install to make this utility available to you.
Debian (or ubuntu):
$ sudo aptitude install php5-dev
CentOS (or RedHat):
$ sudo yum install php-devel
or for PHP 5.3.x
$ sudo yum install php53-devel
That's all.
Applies to: PHP 5.x; Debian / CentOS / RedHat / ubuntu
Comments