composer require yajra/laravel-oci8:^8命令给出了以下错误:
C:\Users\yö\PhpstormProjects\BRP>composer require yajra/laravel-oci8:^8
./composer.json has been updated
Running composer update yajra/laravel-oci8
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires yajra/laravel-oci8 8 -> satisfiable by yajra/laravel-oci8[v8.0.0].
- yajra/laravel-oci8 v8.0.0 requires ext-oci8 >=2.0.0 -> it is missing from your system. Install or enable PHP's oci8 extension.
To enable extensions, verify that they are enabled in your .ini files:
- C:\PHP74\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.Windows 10
PHP 7.4.6
Laravel 8.26.1
PHP 2020.2.3
我不使用XAMMP或WAMP
我希望有人能帮我。提前谢谢你。
发布于 2021-02-05 09:50:25
您缺少了OCI8 PHP扩展,因此请执行以下步骤:
从"C:\php74\ext"下载确切版本的
的任何其他web服务器。
composer require yajra/laravel-oci8:^8命令.发布于 2022-04-22 09:20:32
在https://windows.php.net/downloads/pecl/releases/oci8/中下载具有适当php版本的扩展
解压缩并将所有.dll文件复制到/xampp/php/ext
在http://www.oracle.com/technetwork/topics/winsoft-085727.html中下载具有适当操作系统和PHP版本的即时客户端oracle
提取并复制所有dll文件到/xampp/apache/bin/并将其复制到/xampp/php/
https://stackoverflow.com/questions/66060079
复制相似问题