develooper Front page | perl.perl5.porters | Postings from June 2008

utils/prove loses @INC settings

Thread Next
From:
Andy Dougherty
Date:
June 25, 2008 14:07
Subject:
utils/prove loses @INC settings
Message ID:
Pine.LNX.4.64.0806251643240.29304@fractal.phys.lafayette.edu
When building perl, the following used to work:

    echo 'use Test;' > try.t
    ./perl -Ilib utils/prove try.t

It now (bleadperl@34087) fails with

    try......Can't locate Test.pm in @INC

where @INC contains the locations where perl will be installed.
But if perl has not yet been installed, then Test.pm can't be found.
In perl-5.8.8, it was sufficient to pass -Ilib to ./perl.

In 5.10.x, it is apparently necessary to do
    
    ./perl -Ilib utils/prove -Ilib try.t

That's right:  -Ilib must be specified twice.  Without the first one,
perl complains 'Can't locate strict.pm'.  I don't know how, why, or when
utils/prove loses track of the ./lib directory.

-- 
    Andy Dougherty		doughera@lafayette.edu

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About