How to Install DBD::Oracle in Strawberry Perl

后端 未结 4 1604
感动是毒
感动是毒 2021-01-02 04:25

I am trying to install DBD::Oracle using the CPAN shell in Strawberry Perl. I initially experienced an error because the Makefile could not locate an OCI

4条回答
  •  春和景丽
    2021-01-02 05:05

    I documented what worked for me on Win32 here on my blog. Actually everything went smoothly except the DBI make process didn't detect my installed Oracle Client version correctly. A little deciphering of the make file and I saw there was a parameter to explicitly specify the version. I had to run the make and install commands manually but it all worked out.

    I tried to use some pre-compiled modules but they were compiled with a specific version of Strawberry Perl in mind. I think I found a 5.12 compiled DBI for Oracle and it complained when I tried to use it with the latest 5.16 Strawberry Perl so that's why I went the manual build route.

    From here on out I will probably just copy my c:\perl binary directory to other machines I need it, set environment variables and roll with it.

提交回复
热议问题