Greetings oh wise ones. I am a newbie who has been banging his skull for 2 weeks with no satisfaction.
I am looking to run the CGI:Session module on a Web site hosted by ISP, Register.com. They don't provide telnet or
any other tools to execute a file on the site so I cannot run PPM or CPAN to open and install the module.
I am proposing to extract the files to my Windows PC (done from Active State) and then FTP them to the cgi-bin
folder of my hosted Web site. Somewhere I read that I can do that if I copy the directories and the *.pm files:

cgi-bin/lib/CGI
session.pm
cgi-bin/lib/CGI/Session
Fast.pm, Switch.pm, Apache.pm, Carp.pm, Push.pm, Cookie.pm, Session.pm
cgi-bin/lib/CGI/Session/ID
incr.pm, md5.pm, static.pm
cgi-bin/lib/CGI/Session/Driver
a bunch of *.pm files
cgi-bin/lib/CGI/Session/Serialize
a bunch of *.pm files

etc..... everything is permission 755

But my script is not working! Can this installation method work? Or is there a problem with my script:

#!/usr/bin/perl -w use strict; use CGI; use lib '~/cgi-bin/lib/CGI/'; use CGI::Carp qw(fatalsToBrowser); use CGI::Session; my $cgi = new CGI; my $session = new CGI::Session(undef, $cgi, {Directory=>'/tmp'});

Browser Error message:
Software error: Can't locate CGI/Session.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at /services/webpages/d/o/domaine.com/cgi-bin/login1.pl line 5. BEGIN failed--compilation aborted at /services/webpages/d/o/domaine.com.com/cgi-bin/login1.pl line 5.

Note: domaine.com is my substutite

I am told their servers run Apache /Unix (should be on or the other, right?

In reply to Unable to install CGI::Session on a hosted site by darwall

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.