Subject: | Windows install (Stawberry Perl) fails on long path names |
I have Oracle instant client installed at C:\Program
Files\Oracle\InstantClient\
When attempting to install DBD::Oracle I received errors complaining
about Files\Oracle\InstantClient\SDK and similar.
This was caused by a commandline containing:
gcc ... -IC:\Program Files\Oracle\InstantClient\SDK\
gcc was interpreting the command as include C:\Program and compile
Files\Oracle\InstantClient\SDK\
Adding some extra quotes to Makefile.PL fixed this up for me.
Lines 284 and 285 were
my $OCIINCLUDE = "-I$OH/$OCIDIR/include -I$OH/rdbms/demo";
$opts{INC} = "$OCIINCLUDE -I$dbi_arch_dir";
I modified them to be
my $OCIINCLUDE = "-I\"$OH/$OCIDIR/include\" -I\"$OH/rdbms/demo\"";
$opts{INC} = "$OCIINCLUDE -I\"$dbi_arch_dir\"";
Running Perl 5.10.1 as distributed by Strawberry Perl, compiled Jan 26 2010.