If, when you run
# phpize
you get something like this:
-bash: phpize: command not found
or something like this:
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
That means... yes, that utility just isn't installed. But if you try to look for it through aptitude or yum (for Debian or CentOS respectively), you'll be surprised to find it's not in the repos.
The thing is, phpize comes bundled with the php-devel package, which you need to install for this utility to become 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 there is to it.
Comments