logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [Module::Build] @INC trouble: msg#00029

Subject: Re: [Module::Build] @INC trouble
Kind of hoped this would be fixed in Module::Build 0.24, it's a very
simple path.

P.S. Also heard no response on my suggestion to make the autosplit
variable an array instead of a scalar

On Tue, 3 Feb 2004 08:06:33 -0600 Ken Williams wrote:
: On Thursday, January 29, 2004, at 02:12  PM, Jaap Karssenberg wrote:
: 
: > I did the following for my own packages on a non-root account:
: >   perl -I$HOME/lib Build.PL
: >   ./Build
: >
: > Now in ./Build a @INC is listed that is ok, it starts with
: > /Users/pardus/lib, but when I execute ./Build my PL files ( which
: > use Module::Build->current() ) die because they can't locate 
: > Module/Build.pm
: > in @INC, the @INC in the error message does _not_ contain
: > /Users/pardus/lib where Module::Build actually is installed.
: >
: > I think this is a bug
: 
: One way around this would be to set the PERL5LIB environment variable 
: to $HOME/lib instead of using -I.
: 
: You could also apply the following patch to Module/Build/Base.pm:
: 
: @@ -1121,10 +1129,11 @@
:   sub process_PL_files {
:     my ($self) = @_;
:     my $files = $self->find_PL_files;
: 
:     while (my ($file, $to) = each %$files) {
: +    local $ENV{'PERL5LIB'} = join $self->{config}{path_sep}, @INC;
:       unless ($self->up_to_date( $file, $to )) {
:         $self->run_perl_script($file, [], [@$to]);
:         $self->add_to_cleanup(@$to);
:       }
:     }
: 
: 
:   -Ken

-- 
   )   (     Jaap Karssenberg || Pardus [Larus]                | |0| |
   :   :     http://pardus-larus.student.utwente.nl/~pardus    | | |0|
 )  \ /  (                                                     |0|0|0|
 ",.*'*.,"   Proud owner of "Perl6 Essentials" 1st edition :)  wannabe


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click


<Prev in Thread] Current Thread [Next in Thread>