Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Location
    NY
    Posts
    15

    Unanswered: cannt locate the requred file

    Hi
    i m using IIS5 on windows 2000 platform.its configured well untill i wont use any application with required file.
    i have a few lines of code which require a file ,IIS is giving me the software error saying "Can't locate requiredfile.cgi in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:\sites\All Other\homeDir\cgi-bin\CR\justatest.cgi line 4.

    the code is rite here,if it helps

    use CGI;
    use CGI::Carp qw(fatalsToBrowser);
    require "requiredfile.cgi";

    $amr=new CGI;
    print $amr->header;

    &Create_Db_Connection; #the functiondefined and declared in requred file


    $SQL="select * from banner_update"; #function in required file


    &Do_Sql;
    print "hello world";

  2. #2
    Join Date
    Aug 2003
    Posts
    13
    youv'e probably done this but check your perl folder to make sure you have the required file in your Perl/lib or Perl/site/lib folder. If you don't, you need to move it their or try specifying where the file is found.

  3. #3
    Join Date
    Aug 2003
    Location
    NY
    Posts
    15
    thanks for ur reply
    actually i had already solved that problem .i just gave the complete path(not the url)
    of the same folder where my perl script was ,and things started moving.i did nt know that on IIS i have to give the full path as oppose to the uNix.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •