
dave p
New User
Oct 16, 2002, 4:20 PM
Post #1 of 14
(4318 views)
|
|
installing and loading modules
|
Can't Post
|
|
Greetings, I am very new to Perl so if this info is documented somewhere in plain sight, I apologize - please lead me to it. I am trying to install the P4::Client and P4::UI moduels (used to access the Perforce API), load them into a page and utilize their methods to perform various actions on different files. Here is what I've got so far: - on a windows2k machine using IIS and ActiveState Perl 5.6 - downloaded the module itself - unzipped the contents of the package into D:\perl\lib\P4 (my web root is at d:\webroot2) - at the command line ran perl Makefile.PL - wrote the following web page: #!/usr/bin/perl -w use P4::Client; use P4::UI; my $client = new P4::Client; my $ui = new P4::UI; $client->SetClient( 'devweb2-2k' ); $client->SetPort ( 1666 ); #$client->SetPassword( $p4password ); $client->Init() or die( "Failed to connect to Perforce Server" ); $client->Run( $ui, "info" ); $client->Run( $ui, "edit", "index.asp" ); $client->Final(); when i request this page in a browser, I get the following error CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Can't locate auto/P4/Client/autosplit.ix in @INC (@INC contains: D:/Perl/lib D:/Perl/site/lib .) at D:/Perl/lib/AutoLoader.pm line 146. Can't locate loadable object for module P4::Client in @INC (@INC contains: D:/Perl/lib D:/Perl/site/lib .) at D:\webroot2\cgi\p4example.pl line 3 Compilation failed in require at D:\webroot2\cgi\p4example.pl line 3. BEGIN failed--compilation aborted at D:\webroot2\cgi\p4example.pl line 3. I'm assuming this means that it is not finding the modules that I have installed and am trying to load and that I installed them in the wrong location. Is there a default place where the page will look? or am I way off target here? Any help would be greatly appreciated. Thanks, -d
|