Hello,
I was trying to install the perl DBD::Oracle, using the Makefile.PL
released June 6th 2001.  We are running perl version 5.004_04,  on
solaris 5.5.1 and solaris 5.7 machines.

I got the following syntax error running the script:

>> syntax error at Makefile.PL line 620, near "$_
>>        for "
>> Execution of Makefile.PL_backup aborted due to compilation errors.

I tried to understand what that line was trying to accomplish, (always a
task for us once-per-week Perl users when the "Use English" library is
not specified)  and came up with the following substitution:

OLD LINE:
    $self->{PM}->{$_} = '$(INST_ARCHAUTODIR)/'.$_
        for (qw(mk.pm Oracle.h dbdimp.h ocitrace.h));


NEW LINE:
    foreach my $neato_file (qw(mk.pm Oracle.h dbdimp.h ocitrace.h)) {   
        $self->{PM}->{$neato_file} = '$(INST_ARCHAUTODIR)/'.$neato_file;
    }                   


After changing this,  it compiled, created the Makefile,  and then built
the library.  

Unfortunately,  the module calls the Oracle.so library that linked to a
required dynamic library not available to Solaris 5.5.1.

 >>   libgen.so.1 =>   (file not found) 

So we can only use the perl module from our Solaris 5.7 machines.  This
is not a problem,  but did take us some time to discover.

I just thought I'd share our discoveries,  in case anyone else has these
problems,  or my solutions / assumptions are not correct,  and it didn't
work as well as I thought it did.

Thanks
-Brent Keller

Reply via email to