简体   繁体   English

PHP 无法识别 oci8 扩展

[英]PHP does not recognize an oci8 extension

I'm using我在用着

PHP version 7.4 PHP 7.4版

windows 10 windows 10

Laravel 5.7 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].问题 1 - 根 composer.json 需要 yajra/laravel-oci8 5.7.* -> 可满足 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. - yajra/laravel-oci8[v5.7.0, ..., 5.7.x-dev] 需要 ext-oci8 >=2.0.0 -> 您的系统中缺少它。 Install or enable PHP's oci8 extension.安装或启用 PHP 的 oci8 扩展。

I tried to follow the step by step of this post: Cannot install laravel oci8我尝试按照这篇文章的步骤进行操作: 无法安装 laravel oci8

But it still didn't work.但它仍然没有工作。

PHP OCI8 on PECL supports PHP 7 (and older versions - see PECL page to install on older PHP versions). PECL 上的 PHP OCI8 支持 PHP 7(和旧版本 - 请参阅 PECL 页面以安装在旧 PHP 版本上)。 Try uninstalling OCI8.尝试卸载 OCI8。 Check if you don't have multiple versions of PHP - the difference in path names makes me think you have them.检查您是否没有多个版本的 PHP - 路径名称的差异让我认为您拥有它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM