前情概要
笔记本 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
下
再次运行就好了.