OCI directory not found, please install OCI in D:/ProgramFiles/instantclient_12_1 at Makefile.PL lin

前情概要
笔记本 Windows11
准备Oracle ⇒ PostgreSQL工作
安装DBD-Oracle-1.80时,一直报下面的错
instantclient-basic-windows.x64-12.1.0.2.0.zip instantclient-sqlplus-windows.x64-12.1.0.2.0.zip都解压放在D:/ProgramFiles/instantclient_12_1下了,总是说
OCI directory not found
NNGT(奶奶个腿),%ORACLE_HOME%环境变量也设置好着呢…
异常描述

D:\ProgramFiles\DBD-Oracle-1.80>perl Makefile.PL -l
Using DBI 1.643 (for perl 5.032001 on MSWin32-x64-multi-thread) installed in D:/ProgramFiles/strawberry/perl/vendor/lib/auto/DBI/
Configuring DBD::Oracle for perl 5.032001 on MSWin32 (MSWin32-x64-multi-thread)

If you encounter any problem, a collection of troubleshooting
guides are available under lib/DBD/Oracle/Troubleshooting.
'DBD::Oracle::Troubleshooting' is the general troubleshooting
guide, while platform-specific troubleshooting hints
live in their labelled sub-document (e.g., Win32
hints are gathered in 'lib/DBD/Oracle/Troubleshooting/Win32.pod').

Installing on a MSWin32, Ver#10.0
Using Oracle in D:/ProgramFiles/instantclient_12_1
DEFINE _SQLPLUS_RELEASE = "1201000200" (CHAR)
Oracle Version 12.1.0.2 (12.1)
OCI directory not found, please install OCI in D:/ProgramFiles/instantclient_12_1 at Makefile.PL line 325.

最后解决方法:
下载instantclient-sdk-windows.x64-12.2.0.1.0.zip
并把里面的文件放入D:/ProgramFiles/instantclient_12_1
再次运行就好了.

在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值