I have try to connect my Codeigniter 4 with MongoDB using PHP_Mongo driver. In my PC separate apache2 server and XAMPP php also running. Both PHP versions are different. In my XAMPP using PHP8.1 and apache2 using PHP 7.4 . Whenever I try to install mongodb using the following command "pecl install mongodb " I got this error.
sh: 1: phpize: not found ERROR: `phpize' failed
In my /opt/lampp/lampp/bin/ there is a file named phpize.1 has present. But i don't what have do done. If any one knows the solution kindly help me.