简体   繁体   English

Xampp,Windows10,Oracle 12c,php 7.1

[英]Xampp, Windows10, Oracle 12c, php 7.1

Since I've seen a lot of posts about this matter and none of them seems to have the answer I need ('cause none of them worked for me) I'd like to ask, I'm running w10 with xamp 3.2.2, this xampp extension for oci8 is 12c, anyway I'm having a hard time making the adjustments so I can connect to oracle using yajra/laravel-oci8 for laravel... 由于我已经看过很多关于此事的帖子,而且似乎都没有我需要的答案(因为它们都不对我有用),我想问一下,我正在使用xamp 3.2.2运行w10 ,此oci8的xampp扩展名是12c,无论如何我都很难进行调整,因此我可以使用yajra / laravel-oci8来连接oracle来使用laravel ...

I have downloaded the oracle database, downloaded the instant client 12.2 updated the Microsoft Visual Studio 2013 Redistributable, and nothing works, when I try the $ composer require yajra/laravel-oci8:"5.5.*", it says: 我已经下载了oracle数据库,下载了即时客户端12.2,更新了Microsoft Visual Studio 2013 Redistributable,但是当我尝试$ composer要求yajra / laravel-oci8:“ 5.5。*”时,什么也没有用,它说:

"PHP Warning: PHP Startup: Unable to load dynamic library 'php_oci8_12c' (tried: C:\\xampp\\php\\ext\\php_oci8_12c (No se puede encontrar el m▒dulo especificado. ), C:\\xampp\\php\\ext\\php_php_oci8_12c.dll (No se puede encontrar el m▒dulo especificado." “ PHP警告:PHP启动:无法加载动态库'php_oci8_12c'(尝试:C:\\ xampp \\ php \\ ext \\ php_oci8_12c(无特殊说明。),C:\\ xampp \\ php \\ ext \\ php_php_oci8_12c.dll(不进行任何特定的规定。”

I don't get What I'm doing bad... Can anyone point me in the right direction? 我不明白我做的不好...谁能指出我正确的方向?

I've had this issue before and if my memory serves me correct then you need to update your System Variable named "Path" to include the location of the Oracle Instant Client. 我之前曾遇到过此问题,如果我的记忆正确,那么您需要更新名为“ Path”的系统变量以包括Oracle Instant Client的位置。

So it could look something like this: 所以看起来可能像这样:

%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\;C:\\path\\to\\oracle_instant_client\\folder %SystemRoot%\\ system32;%SystemRoot%;%SystemRoot%\\ System32 \\ Wbem;%SYSTEMROOT%\\ System32 \\ WindowsPowerShell \\ v1.0 \\; C:\\ path \\ to \\ oracle_instant_client \\ folder

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

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