Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Strawberry CPAN.pm wrongly overrides INC in Makefile.PL

by adamk (Chaplain)
on Dec 08, 2008 at 07:09 UTC ( #728870=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Strawberry CPAN.pm wrongly overrides INC in Makefile.PL
in thread Strawberry CPAN.pm wrongly overrides INC in Makefile.PL

The new version of Strawberry should resolve your issue


Comment on Re^5: Strawberry CPAN.pm wrongly overrides INC in Makefile.PL
Re^6: Strawberry CPAN.pm wrongly overrides INC in Makefile.PL
by mje (Deacon) on Dec 08, 2008 at 09:01 UTC

    Thank you

    I forgot to report back here but in the mean time I was given the following patch to DBD::ODBC which I know was also applied to a few other DBDs:

    package MY; use strict; use Config; sub constants { my $self = shift; require DBI::DBD; # The problem with stawberry perl is it sets INC on the command li +ne # and that overrides INC in this Makefile unless we set it here. my $old_constants = $self->SUPER::constants(); my $new_constants; foreach my $line ( split(/\n/, $old_constants) ) { if ( $line =~ /^INC = .*strawberry.*/ ) { print qq(Strawberry Perl found; adjusting the INC variable +;\n); $line = $line . q( -I) . DBI::DBD::dbd_dbi_arch_dir(); print qq(INC is now $line\n); } $new_constants .= $line . qq(\n); } return $new_constants; }

    Could you tell me in what version of strawberry perl I will be able to remove the above?

      The problem with stawberry perl is it sets INC on the command line

      If that's the only problem, then it's easily fixed. That INC setting is made when Strawberry is installed - so it's just a matter of undoing that setting after Strawberry has been installed.

      Elsewhere in this thread Anonymous Monk claimed that the removal of that setting caused problems. I don't see how that can be, and (s)he failed to provide details. I'm guessing that the latest Strawberry doesn't set the INC variable - and that's what adamk was alluding to. For any Strawberry build that *does* set that variable, I still fail to see any reason that it can't simply be removed. (Same goes for the 'LIB' environment variable.)

      Did you try doing that ?

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://728870]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-09-17 01:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (56 votes), past polls