【发布时间】:2014-02-02 09:43:20
【问题描述】:
我在 Windows 7 上使用 Oracle XE 11.2。当我尝试在 perl shell cpanm DBD::Oracle 上运行时,我收到了这个工作日志
-> FAIL Configure failed for DBD-Oracle-1.68.
附上部分解释
The ORACLE_HOME environment variable value (C:/oraclexe/app/oracle/product/11.2.0/server/bin;) is not valid.
It must be set to hold the path to an Oracle installation directory
on this machine (or a machine with a compatible architecture).
我的环境变量 - 系统变量包含PATH = C:\oraclexe\app\oracle\product\11.2.0\server\bin;...
XE 11.2 的确切 Oracle 安装目录是什么?
提前致谢。
【问题讨论】:
-
考虑更改您的 perl(32 位与 64 位)和/或使用 oracle instant client。每个带有工作 dbd::oracle 的 oracle 安装都附带 perl。
-
我不认为它喜欢分号。
-
是的,分号是我的部分问题,因为 Lajos 的例子表明没有分号。我假设我的操作系统是 32 位的,我安装了 32 位的草莓perl,它实际上是 64 位的,没有安装 OCI。所以我现在正在尝试安装正确的 stawberryperl 并弄清楚如何安装 Oracle 即时客户端 (OCI)。
标签: perl dbi oracle-call-interface oracle-xe strawberry-perl