You get a bonus - 1 coin for daily activity. Now you have 1 coin

Where to get phpize (phpize: command not found) - for Debian, CentOS, ubuntu, or RedHat

Practice



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

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)