----- Original Message ----- From: "Henry, Mark Patrick" <[EMAIL PROTECTED]> Date: Thursday, January 20, 2005 0:54 am Subject: Can't locate loadable object for module
> Hi, Hello; > > I'm trying to use a perl module that a tool I got, ccmeter.pl, > requiresand I can't no matter what I do.. > > I'm on hpux11.11, and the script was written for 5.005_03 so > that's what > I'm including at the top of the perl script ( > #!/apps/perl-5.005_03/bin/perl) - this exists and *is* that particular > version. > > The module is Time::HiRes, the file is HiRes.pm > > I d/l'd the module from cpan and put it in my user directory... > ~mhenry/tools/3rdparty/Time/HiRes.pm > The file exists of course, has read bit set across the board. > > When I run the script it complains it "Can't locate loadable > object for > module Time::HiRes in @INC" > > If I run 'perl -V', I get (among other things): > @INC: > /apps/perl-5.005_03/lib/5.00503/PA-RISC1.1 > /apps/perl-5.005_03/lib/5.00503 > /apps/perl-5.005_03/lib/site_perl/5.005/PA-RISC1.1 > /apps/perl-5.005_03/lib/site_perl/5.005 > > > So, in the script I put the following: > > use lib '/users/mhenry/tools/3rdparty'; > > I get: > Can't locate loadable object for module Time::HiRes in @INC (@INC > contains: /users/mhenry/tools/3rdparty > /apps/perl-5.005_03/lib/5.00503/PA-RISC1.1 > /apps/perl-5.005_03/lib/5.00503 > /apps/perl-5.005_03/lib/site_perl/5.005/PA-RISC1.1 > /apps/perl-5.005_03/lib/site_perl/5.005) at ./ccmeter.pl line 221 > > > I changed the line above to: > > use lib '/users/mhenry/tools/3rdparty/Time'; > > I get the same.. > > I tried putting the HiRes.pm file at every level of the dirs mentioned > above in the 'perl -V' return, but nothing!! > > It seems to be a simple task but nothing will work. > > The 'head' of the module is: > > package Time::HiRes; > > use strict; > use vars qw($VERSION @ISA @EXPORT @EXPORT_OK @EXPORT_FAIL); > > require Exporter; > require DynaLoader; > > @ISA = qw(Exporter DynaLoader); > > ..which appears to be legit. > > Can *anyone* help??! I've tried every google search result out > there.. Did you try: push @INC , '/users/mhenry/tools/3rdparty/Time'; HTH, Mark G. > Many thanks, > > Mark > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>