Menu

I NEED HELP WITH reference statements

Help
2002-10-18
2002-10-21
  • Nobody/Anonymous

    Hey I had a quick question for anyone who can help.  I am trying to get clanadmin running on our server but I seem to be running into a brick wall with the require statements for loading the libraries.  This site is hosted by a company so I do not know the absolute path to the includes directory and I keep getting an error like:

    Failed to load, because : Can't locate include/common 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 /html/cgi/cadmin/clanadmin.cgi line 36.

    I believe this is because my @INC does not have the right path but I don't know what that path is.  Any help would be greatly appreciated.

     
    • Nobody/Anonymous

      Hmmm, Perl by default should include the current directory in it's @INC list.  Your hosting provider's probably trying to do a little security thing here. 

      Try adding the following line to the top of the clanadmin.cgi  file:

      @INC=( @INC,".");

      (Note the dot in the quotes).  This should let the code find the includes properly.

      |LCN|DeadMeat, UT Fragger

       

Log in to post a comment.