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语言
拉腊维尔8.26.1
PHP Storm 2020.2.3
我没有使用XAMMP或WAMP
我希望有人能帮我一把。先谢谢你。
2条答案
按热度按时间kt06eoxx1#
您缺少OCI 8 PHP扩展,请按照以下步骤操作:
1.从http://pecl.php.net/package/oci8下载确切的版本,你必须是php_oci8-2.2.0,解压缩并复制到PHP ext文件夹,为您它在“C:\php74\ext”
1.取消php.ini中的“extension=php_oci8_11g.dll”注解并重新启动Apache或您正在使用的任何其他Web服务器
1.检查php_info(),oci 8应该被启用。
1.再次运行
composer require yajra/laravel-oci8:^8
命令。tvokkenx2#
在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://github.com/yajra/laravel-oci8