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
7
  • How about installing PHP dev first? Commented May 2, 2022 at 11:57
  • sudo apt install php8.1-dev php8.1-pear build-essential libaio Commented May 2, 2022 at 11:58
  • How about dpkg -S /usr/bin/phpize ? Guess you might need the default PHP package, too. Commented May 2, 2022 at 11:59
  • I am using ubuntu 18.4. Any idea to fix this issue. Commented May 2, 2022 at 11:59
  • Does this answer your question? Install xdebug on specific php version Commented May 2, 2022 at 12:40

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.