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

hi mwhiting,

...CGI::Session module not installed...
Possibly. Or one of its dependancies or a version of one of its dependancies (but that would show up later).

Try adding

use strict; use warnings; use CGI::Carp qw(fatalsToBrowser);
at the top of the script and see if that sheds any more light on the subject.

Show us a (short) example of what you are using.

update: fixed typos

Replies are listed 'Best First'.
Re^2: CGI::Session isn't installed?
by mwhiting (Beadle) on May 16, 2007 at 18:11 UTC

    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

      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.