perl and @INC
Hi,
When I type perl -V , I get (among other things):
@INC:
/home/rpg/lib/perl
/usr/local/lib/perl/5.6.1
/usr/local/share/perl/5.6.1
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.6.1
/usr/share/perl/5.6.1
/usr/local/lib/site_perl/i386-linux
/usr/local/lib/site_perl
I believe this is incorrect. For instance, I have packages in
/usr/lib/perl5/5.005/i386-linux/, but perl cannot find these packages.
Is there a way to put more entries into @INC?
I also discovered the following very strange thing: I have a package
/usr/local/lib/site_perl/i386-linux/Time/HiRes.pm but when I execute
the following perl code
use Time::HiRes;
I get the response "Can't locate loadable object for module
Time::HiRes in @INC". But /usr/local/lib/site_perl/i386-linux is in
@INC, and all the files are readable, so why can it not find them?
Any help kindly appreciated,
Richard
background info
---------------
/etc/apt/sources.list :
deb ftp://ftp.uk.debian.org/debian woody main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://red-carpet.ximian.com/debian stable main
dpkg -l | grep perl :
ii dpkg-perl 0.1-5 Perl interface modules for dpkg
ii gimp1.2-perl 1.2.2-ximian.2 Perl support and plugins for The GIMP
ii libft-perl 1.2-11 Perl module for the FreeType library
ii libgtk-perl 0.7008-ximian. Perl module for the gtk+ library
ii libmailtools-p 1.42-2 Manipulate email in perl programs
ii libnet-perl 1.09.01-1 Implementation of Internet protocols for Per
ii libnet-ph-perl 2.21-2 Perl module for accessing ph servers
ii libperl5.6 5.6.1-7 Shared Perl library.
ii libterm-stool- 0.26 Slang widget toolkit for perl
ii libtimedate-pe 1.10-7 Time and date functions for perl.
ii liburi-perl 1.18-1 Manipulates and accesses URI strings
ii libwww-perl 5.63-1 WWW client/server library for Perl
ii pdl 2.2.1-7.1 The perl data language. Perl extensions for
ii perl 5.6.1-7 Larry Wall's Practical Extraction and Report
ii perl-5.005 6.3 Transitional package.
ii perl-5.005-bas 6.3 Transitional package.
ii perl-5.005-doc 6.3 Transitional package.
ii perl-5.005-sui 6.3 Transitional package.
ii perl-5.6 6.3 Transitional package.
ii perl-5.6-base 6.3 Transitional package.
ii perl-5.6-suid 6.3 Transitional package.
ii perl-base 5.6.1-7 The Pathologically Eclectic Rubbish Lister.
ii perl-doc 5.6.1-7 Perl documentation.
ii perl-modules 5.6.1-7 Core Perl modules.
ii perl-suid 5.6.1-7 Runs setuid Perl scripts.
ii perl-tk 800.023-1 Perl module providing the Tk graphics librar
ii pgperl 2.18-2 perl interface to the pgplot plotting librar
ii vim-perl 6.0.093-2 Vi IMproved, with perl scripting support
cd /usr/local/lib/site_perl/i386-linux
ls -ld Time ; ls -l Time/HiRes.pm
drwxr-xr-x 2 root root 4096 Feb 21 2001 Time
-rw-r--r-- 1 root root 7435 Mar 16 1999 Time/HiRes.pm
--
Don't read everything you believe.
Reply to: