Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to get DBD::Oracle to work on windows via cygwin.
Problem number one, it doesn't know where ORACLE_HOME is, when I run perl Makefile.PL
I have solved this by manually setting an ORACLE_HOME into the $ENV, now the perl Makefile.PL command works.
Now I try to run make and this fails with the following:
Oracle.h:37:17: fatal error: oci.h: No such file or directory #include <oci.h> ^ compilation terminated. make: *** [Makefile:378: Oracle.o] Error 1
I thought the way to solve this was to run the Makefile with this argument:
perl Makefile.PL INC='-I/cygdrive/c/app/myname/product/12.1.0/client_2/oci/include/'Which is exactly where the oci.h file can be found.
So, what am I doing wrong?
The second and even greater mystery is that when I installed the Oracle client, it installed its own Perl executable. Should I be using this to run/install DBD?
Spoiler, I tried that and it didn't work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mysteries of Oracle, Windows, and cygwin
by marto (Cardinal) on Sep 05, 2018 at 06:13 UTC | |
|
Re: Mysteries of Oracle, Windows, and cygwin
by bliako (Abbot) on Sep 05, 2018 at 11:24 UTC | |
|
Re: Mysteries of Oracle, Windows, and cygwin
by syphilis (Archbishop) on Sep 05, 2018 at 12:03 UTC | |
by Cody Fendant (Hermit) on Sep 08, 2018 at 05:50 UTC | |
|
Re: Mysteries of Oracle, Windows, and cygwin
by afoken (Chancellor) on Sep 05, 2018 at 17:11 UTC | |
by marto (Cardinal) on Sep 05, 2018 at 17:49 UTC | |
|
Re: Mysteries of Oracle, Windows, and cygwin
by Cody Fendant (Hermit) on Sep 06, 2018 at 09:15 UTC |