phpize.default command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
phpize.default: command not found
or when using sudo you get the following error message
sudo: phpize.default: command not found
Solutions to phpize.default: command not found
How To Fix phpize.default: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu phpize.default is provided by php-dev package.
php-dev is:
Headers and other PHP needed for compiling additional modules.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
This package is a dependency package, which depends on latest stable PHP version (currently 8.1).
To fix this problem, we can install more using the command below.
sudo apt-get -y install php-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install php-dev.
sudo apt -y install php-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install php-dev
Summary
In this tutorial we learn how to fix phpize.default command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.