Gossamer Forum
Home : General : Perl Programming :

Can't locate strick.pm ... huh?

Quote Reply
Can't locate strick.pm ... huh?
Hi. For some reason, I am getting this weird error message;

Quote:
bash-2.05$ perl cleanup.cgi
Can't locate strict.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at cleanup.cgi line 18.
BEGIN failed--compilation aborted at cleanup.cgi line 18.


... with the following code...

Code:
#!/usr/bin/perl

use strict;
use lib '/home/virtual/site38/fst/var/www/cgi-bin/admin';
use Links qw/$IN $DB $CFG/;
use GT::SQL;
use GT::SQL::Condition;
use CGI::Carp qw(fatalsToBrowser);

Links::init('/home/virtual/site38/fst/var/www/cgi-bin/admin');

########################################

print $IN->header();

# setup database table connections...
my $table = $DB->table('Links');
my $table2 = $DB->table('CatLinks');
my $table3 = $DB->table('Category');

my $cond = GT::SQL::Condition->new("Full_Name", "LIKE", 'Regional%');
my $sth = $table->select();
my @ids;

while (my $hit = $sth->fetchrow_hashref) {

push (@ids,$hit->{ID});
print $hit->{Full_Name} . "\n";

}

print join("\n",@ids);

Anyone got any ideas as to what this may be about? Other LSQL files work fine.... just not this one Unsure (and they use strict).

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Can't locate strick.pm ... huh? In reply to
Sounds to me like your Perl is seriously broken. And you should really upgrade to 5.6.1, surely?

- wil
Quote Reply
Re: [Wil] Can't locate strick.pm ... huh? In reply to
Yeah, i know. Its not my server.. its my friends. Its a dedicated one too, so he should be able to pay for someone to upgrade it (he has very little server knowledge).

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Can't locate strick.pm ... huh? In reply to
What's the server OS? Do a 'perl -V' and paste the results.

- wil
Quote Reply
Re: [Wil] Can't locate strick.pm ... huh? In reply to
Its Redhat ...

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Can't locate strick.pm ... huh? In reply to
As super-user, try the command 'up2date -u' and update the system.

- wil
Quote Reply
Re: [Wil] Can't locate strick.pm ... huh? In reply to
I'll recommend that to him, but I dare take the chance.. in case I screw something up Crazy

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates