Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try to run phpize I get

-bash: phpize: command not found

I have run yum -y install php-devel but that returns:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.softaculous.com
 * extras: centos.schlundtech.de
 * rpmforge: mirror1.hs-esslingen.de
 * updates: ftp.plusline.de
Setting up Install Process
No package php-devel available.
Error: Nothing to do

How can I fix this?

share|improve this question
Isn't the command phpize5 instead of phpize – Anthon Mar 3 '14 at 19:11

When you're unsure where a particular executable resides, you can query you YUM installation like so, using repoquery:

$ repoquery -q --file */phpize


Yum makes use of plugins to enhance it's features. One of these plugins is called fastestmirror. Sometimes this plugin can be the cause of slowness. The mirror sites that this plugin selects can sometimes not be the best ones to use all the time.

You can remove the preferred list of mirrors from this plugin by deleting this file:

$ sudo rm /var/cache/yum/timedhosts.txt

Often times the fastestmirror plugin can cause confusion because some mirror is lagging behind the rest of the mirrors or original site. I'll typically disable it temporarily just to get around the issue like so:

$ sudo yum --disableplugin=fastestmirror install php-devel


$ sudo yum --noplugins install php-devel
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.