Hello SuSE folks, I've got a very puzzled when I installed CGI::BuildPage module and it didn't work. I'm using SuSE7.1 distro with the default perl installation. CGI::BuildPage module was installed correctly that can be suggested according to this output: Writing /usr/lib/perl5/site_perl/5.6.0/i586-linux/auto/CGI/BuildPage/.packlist Appending installation info to /usr/lib/perl5/5.6.0/i586-linux/perllocal.pod I included it in my perl script as use CGI::BuildPage However, in the browser window I've got these messages: Software error: Can't locate CGI/BuildPage.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i586-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i586-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at /WWW_Dev0/cgi-bin/cgi_core.cgi line 16. For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. Content-type: text/html Software error: [Fri Nov 9 14:40:06 2001] BuildPage.pm: Can't locate CGI/BuildPage.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i586-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i586-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at /WWW_Dev0/cgi-bin/cgi_core.cgi line 16. BEGIN failed--compilation aborted at /WWW_Dev0/cgi-bin/cgi_core.cgi line 16. For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. Could somebody please give me a hint how to enable this module in perl on SuSE71 distro? Thank you in advance. Alex -- MS Windows users should be covered under the Americans with Disabilities Act! --------------> Try Linux and you'll understand why <--------------
Alex Daniloff wrote:
I've got a very puzzled when I installed CGI::BuildPage module and it didn't work. I'm using SuSE7.1 distro with the default perl installation.
CGI::BuildPage module was installed correctly that can be suggested according to this output: Writing /usr/lib/perl5/site_perl/5.6.0/i586-linux/auto/CGI/BuildPage/.packlist Appending installation info to /usr/lib/perl5/5.6.0/i586-linux/perllocal.pod
I included it in my perl script as use CGI::BuildPage ^^^ Did you forget the semi-colon?
First you should try to verify if the CGI:BuildPage is actually loading with a little test script like: #!/usr/bin/perl use warnings; use CGI::Buildpage; If that runs without error, then look at your /var/log/httpd/error_log for clues. It may say something like "premature end of script headers", or other error. Sometimes perl gives cascading errors, meaning some little problem early in the script, gives a misleading error message. You should be able to run your cgi script from the commandline, and see if error messages are generated. Make sure to put the "use warnings;" statement in there. If all else fails, copy Buildpage.pm to /usr/lib/perl5/5.6.0/i586-linux/
Alex Daniloff wrote:
I've got a very puzzled when I installed CGI::BuildPage module and it didn't work. I'm using SuSE7.1 distro with the default perl installation.
Jees, just to see what you are saying, I went and installed CGI::BuildPage. Guess what??? The makefile dosn't install anything in your perl libs. Go search for BuildPage.pm in /usr/lib/perl5....NOT there. This is a poorly setup perl module, sorry. This is one of those modules which you must use from within your cgi-bin with an @INC statement; as in the BuildPage source directory under /eg/inter.cgi Notice the 5th line in inter.cgi? It tells the script to look in the current dir, and the next dir up, for BuildPage.pm. So you can put Buildpage.pm right in the cgi-bin with your test script. When running a perl script, it will check the current dir, as well as @INC for the modules; so you may not need a @INC statement if you do it right. You could also try just manually copying the BuildPage.pm to /usr/lib/perl5/5.6.0/ and it will be found, but I don't know if it will run there since it seems to reguire a bunch of gifs from the source/pics/ directory. So it looks like you need to copy the BuildPage source directory to your cgi-bin to use it. Copy BuildPage.pm and the /pics dir to cgi-bin; and you can test it by copying the eg/ dir also, and running eg/inter.cgi to test it.
participants (2)
-
Alex Daniloff
-
zentara