My document title
If you receive an error message similar to:
Software error:
Can't locate Account.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:\Inetpub\cgi-bin\filemanager\runonce.pl line 3.
Begin failed--compilation aborted at C:\Inetpub\cgi-bin\filemanager\runoncepl line 3.
One solution is to specify to the server the location of certain key scripts.
To do this you need to open up the following files in a perl or text editor:
AccountCreation.pl
Account.pm
ClientManager.pl
Manager.pl
Manager.pm
RunOnce.pl
IDC.pm
On or around line 2 of each of these files you need to add/change the following line of code from:
#use lib './';
to:
use lib 'C:/Inetpub/cgi-bin/FileManager';
PLEASE ENSURE YOU REMEMBER TO REMOVE THE LEADING "#" TO BECOME:
use lib 'C:/Inetpub/cgi-bin/FileManager';
AND DONT LEAVE IT SET TO:
#use lib 'C:/Inetpub/cgi-bin/FileManager';
Please note: Although the server path is usually specified as: C:\Inetpub\cgi-bin\FileManager\ when working with
perl scripts the backward slashes "\" are changed to be forwardslashes "/"
to become: C:/Inetpub/cgi-bin/FileManager/.
This principal applies to all other server paths entered in the Configuration.pl file.
When this is complete you then need to specify the full path to the Configuration.pl file in the following scripts only:
On line 8 of the AccountCreation.pl script you will see:
my $account = new Account(config=>'Configuration.pl', SCRIPT=>$script);
this needs to be changed to:
my $account = new Account(config=>'C:/Inetpub/cgi-bin/FileManager/Configuration.pl', SCRIPT=>$script);
On line 9 of the ClientManager.pl script you will see:
my $account = new Account(config=>'Configuration.pl', SCRIPT=>$script);
this needs to be changed to:
my $account = new Account(config=>'C:/Inetpub/cgi-bin/FileManager/Configuration.pl', SCRIPT=>$script);
On line 46 of the Manager.pl script you will see:
my $fm = new Manager(config=>'Configuration.pl', SCRIPT=>$script);
this needs to be changed to:
my $fm = new Manager(config=>'C:/Inetpub/cgi-bin/FileManager/Configuration.pl', SCRIPT=>$script);
On line 9 of the Runonce.pl script you will see:
my $account = new Account(config=>'Configuration.pl');
this needs to be changed to:
my $account = new Account(config=>'C:/Inetpub/cgi-bin/FileManager/Configuration.pl');
When this is complete you can then save and re-upload all script and then proceed by running the RunOnce.pl file via URL.
© Copyright i Dot Communications