19

I was trying to install PECL extension, and required phpize. But when I ran phpize it displayed:

ps@ubuntu:~$ phpize
No command 'phpize' found, did you mean:
 Command 'phpize5' from package 'php5-dev' (main)
phpize: command not found

My current php version is : PHP Version 5.4.6-1ubuntu1.2 Should I install the php5-dev version? Will it have any conflicting issues? What are other alternative methods?

What should I do to resolve my issue? I'm running ubuntu 12.10

ty812
  • 3,293
  • 19
  • 36
xan
  • 4,640
  • 13
  • 50
  • 83

1 Answers1

51
sudo apt-get install php5-dev

phpize is a tool used to prepare a php module for building, so you'll need the dev package. There shouldn't be any problems, assuming you're using a packaged version of PHP anyway.

(Update - for more recent versions of Ubuntu try sudo apt-get install php-dev)

Paul Dixon
  • 295,876
  • 54
  • 310
  • 348