Wednesday, January 16, 2008

phpize: command not found

If you ever get phpize: command not found error when trying to install a PEAR package on a linux system, this is probably becuase the php-devel package is not installed.

8 comments:

  1. Thanks! Short, sweet & to the point.

    ReplyDelete
  2. Note to self: easiest way to install this package on a Redhat system is to use
    sudo up2date -i php-devel

    ReplyDelete
  3. Another note to self: for CentOS do sudo yum install php-devel

    ReplyDelete
  4. hmmm... so what could be the problem on my CentOS:

    [root@ns3 /]# pecl install imagick
    downloading imagick-2.2.2.tgz ...
    Starting to download imagick-2.2.2.tgz (77,212 bytes)
    ..................done: 88,212 bytes
    11 source files, building
    running: phpize
    sh: phpize: command not found
    ERROR: `phpize' failed

    Sometimes I dream of a Server-OS, as flexible as Linux and as userfriendly as Windows! But then I wake up... back in the nightmare!

    Best regards, Ingmar

    ReplyDelete
  5. just do:
    [root@server /] yum install php-devel
    and then run pecl install

    ReplyDelete
  6. It is a nice blog. It is sometimes dream of a server-os is flexible Linux and user friendly as window. The P H P level package is installed. Thanks is very shortly mindfully derived.The Red hat system is to use
    sudo up to datei php devel.

    ReplyDelete
  7. Thank you sir. As anonymous said, "short and sweet". Saved me a bunch of time.

    ReplyDelete

[Due to much spam, comments are now moderated and will be posted after review]