You have to actually install the modules not just untar them

untar the downloaded packege to a tmpdir ($TMPDIR)
and the goto this directory
#> cd $TMPDIR/DB_File-1.803
#> perl Makefile.PL prefix=$HOME/perl5/perlmod
#> make && make test
#> make install

(#> is the prompt) as you install into a specific prefix
you won't need root permissions to do this.

Then your PERL5LIB will be correctly used

If you have root permissions it would probably be 
simplier to use CPAN:

#> perl -MCPAN -e shell
CPAN> install DB_File

Cheers

+rl

Ed Sickafus wrote:
> 
> What's going on?
> I login, start a logging file, cd to perl5 directory, and perl -V to see
> what @INC has in it. Then -- watch what happens ...
> 1.)
>         [esickafus perl5]$ perl -V
>         ... (25 lines of stuff) ...
>           @INC:
>             /usr/lib/perl5/5.00503/i386-linux
>             /usr/lib/perl5/5.00503
>             /usr/lib/perl5/site_perl/5.005/i386-linux
>             /usr/lib/perl5/site_perl/5.005
>             .
> 
> @INC looks reasonable at this point.
> 
> 2.) I want to insert my perlmod directory into @INC so I ...
> 
>         [esickafus perl5]$ echo $HOME
>         /home/sites/site10/users/esickafus
>         [esickafus perl5]$ export PERL5LIB=$HOME/perl5/perlmod
>         [esickafus perl5]$ echo $PERL5LIB
>         /home/sites/site10/users/esickafus/perl5/perlmod
> 
> .... seems logical to me, but when I check the results it appears that @INC
> has a mind of its own ...
> 
> [esickafus perl5]$ perl -V
> 
>             PERL5LIB="/home/sites/site10/users/esickafus/perl5/perlmod"
>           @INC:
>             /home/sites/site10/users/esickafus/perl5/perlmod/i386-linux         
><---?!!
>             /home/sites/site10/users/esickafus/perl5/perlmod
>             /usr/lib/perl5/5.00503/i386-linux
>             /usr/lib/perl5/5.00503
>             /usr/lib/perl5/site_perl/5.005/i386-linux
>             /usr/lib/perl5/site_perl/5.005
>             .
> 
> Where'd the first entry in @INC come from?
> 
> 3.) If I now try to run a simple script, missing file errors appear that
> $HOME/perl5/perlmod/ should be point to.
> 
>         [esickafus perl5]$ export PERL5LIB=$HOME/perl5/perlmod
> 
>         [esickafus perl5]$ perl srvtest.cgi
> 
>         Can't locate DB_FILE.pm in @INC (@INC contains:
> /home/sites/site10/users/esickaf
>         us/perl5/perlmod/i386-linux
> /home/sites/site10/users/esickafus/perl5/perlmod /us
>         r/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5
>         .005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at srvtest.cgi line 8.
>         BEGIN failed--compilation aborted at srvtest.cgi line 8.
> 
> Two DB_FILE.pm files exist, both pointed to by $HOME/perl5/perlmod but not
> by /i386-linux:
>         $HOME/perl5/perlmod/DB_FILE/DB_File-1.803/DB_File.pm
>         $HOME/perl5/perlmod/DB_FILE/DB_File-1.803/blib/lib/DB_File.pm
> 
> .... another bad day in the making.
> Any ideas out there?
> Thanks,
> Ed

-- 
+rl
-------------------------------------
Roland Lammel
-------------------------------------
Services / Technical Assistance / PPA
Kapsch CarrierCom 
Triesterstr. 70a, 1102 Wien
-------------------------------------
mailto:[EMAIL PROTECTED]
Tel:   +43 1 60501 - 3456 (ESN 572 3456)
Fax:   +43 1 60501 - 3405
Mobil: +43 664 628 - 3456
-------------------------------------

Reply via email to