PHP does not recognize an oci8 extension

698 Views Asked by At

I'm using

PHP version 7.4

windows 10

Laravel 5.7


I'm trying to perform a composer install on the repository, but the following error appears:

Problem 1 - Root composer.json requires yajra/laravel-oci8 5.7.* -> satisfiable by yajra/laravel-oci8[v5.7.0, ..., 5.7.x-dev]. - yajra/laravel-oci8[v5.7.0, ..., 5.7.x-dev] require ext-oci8 >=2.0.0 -> it is missing from your system. Install or enable PHP's oci8 extension.

I tried to follow the step by step of this post: Cannot install laravel oci8

But it still didn't work.

1

There are 1 best solutions below

1
rustam majid On

PHP OCI8 on PECL supports PHP 7 (and older versions - see PECL page to install on older PHP versions). Try uninstalling OCI8. Check if you don't have multiple versions of PHP - the difference in path names makes me think you have them.