in reply to Re: CGI::Session isn't installed?
in thread CGI::Session isn't installed?

OK, so that does shed a little light. This is what I get back:

Software error: Can't locate CGI/Session.pm in @INC (@INC contains: /usr/local/lib/per +l5/site_perl/5.8.7/mach /usr/local/lib/perl5/site_perl/5.8.7 /usr/loc +al/lib/perl5/site_perl /usr/local/lib/perl5/5.8.7/BSDPAN /usr/local/l +ib/perl5/5.8.7/mach /usr/local/lib/perl5/5.8.7 .) at libsearch-mw.cgi + line 9. BEGIN failed--compilation aborted at libsearch-mw.cgi line 9.

Here's my general code. It's a short program containing basically nothing so I can get this working. When it does I can splice it into what I'm working on.

#!/usr/bin/perl use warnings; use CGI::Carp qw(fatalsToBrowser); use Cwd; use LWP::Simple; use CGI; use CGI::Session; my $cgi = new CGI; my $sid = $cgi->param('CGISESSID') || undef; my $session = new CGI::Session("driver:File", $cgi, {Directory=>'/tmp' +});

It looks to me like the module is not there.

Thanks in advance.

Michael

Replies are listed 'Best First'.
Re^3: CGI::Session isn't installed?
by EvanK (Chaplain) on May 16, 2007 at 21:29 UTC
    That's correct, the module appears to not be installed. This leaves you with two courses of action:

    1. Ask your ISP if they will install it for you. Many ISPs are willing to do this, but many more are not. So ask very nicely.

    2. Since, AFAIK, this is a pure perl module, you could download it from CPAN, unzip it, and FTP the entire lib directory into the directory you're running your scripts from, most likely the cgi-bin.

    __________
    Systems development is like banging your head against a wall...
    It's usually very painful, but if you're persistent, you'll get through it.