'Php8.1-dev not install phpize in ubuntu 18.04

I am trying to connect the oracle database with Laravel. But when we trying run this command "pecl install oci8". It will throw an error. I am using ubuntu 18.4 and PHP version 8.1. How to install phpize.

root@linux:~# pecl install oci8
    downloading oci8-3.2.1.tgz ...
    Starting to download oci8-3.2.1.tgz (190,781 bytes)
    .........................................done: 190,781 bytes
    13 source files, building
    running: phpize
    sh: 1: phpize: not found
    ERROR: `phpize' failed


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source