2

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
Sunil Bind
  • 507
  • 1
  • 5
  • 18

1 Answers1

0

I had the same error on Alpine with PHP8.1, I solved it by adding:

ln -s /usr/bin/phpize81 /usr/bin/phpize
ln -s /usr/bin/pecl81 /usr/bin/pecl

to the docker file, for unknown reason the phpize and pecl are missing by php81 installaion.