16

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,283
  • 18
  • 36
xan
  • 5,125
  • 13
  • 47
  • 80

1 Answers1

47
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
  • 287,944
  • 49
  • 307
  • 343