Perl Problem How to resolve

ALLiNET

Verified User
Joined
Dec 26, 2004
Messages
10
[Mon Jan 10 18:20:37 2005] [error] [client 24.161.125.xxx] malformed header from script. Bad header=BEGIN failed--compilation abor: /home/allinet/domains/allinet.net/public_html/cgi-bin/affiliates/admin.cgi
[Mon Jan 10 18:20:37 2005] admin.cgi: [Mon Jan 10 18:20:37 2005] admin.cgi: Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.2/mach /usr/local/lib/perl5/site_perl/5.8.2 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.2/BSDPAN /usr/local/lib/perl5/5.8.2/mach /usr/local/lib/perl5/5.8.2 .) at common.cgi line 24.
[Mon Jan 10 18:20:37 2005] admin.cgi: [Mon Jan 10 18:20:37 2005] admin.cgi: BEGIN failed--compilation aborted at common.cgi line 24.
[Mon Jan 10 18:20:37 2005] admin.cgi: Compilation failed in require at admin.cgi line 45.


Server Under FreeBSD
 
ALLiNET said:
[Mon Jan 10 18:20:37 2005] admin.cgi: [Mon Jan 10 18:20:37 2005] admin.cgi: Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.2/mach /usr/local/lib/perl5/site_perl/5.8.2 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.2/BSDPAN /usr/local/lib/perl5/5.8.2/mach /usr/local/lib/perl5/5.8.2 .) at common.cgi line 24.

That message means that perl cannot find the DBI.pm module. This means it is not installed or it is installed to a directory not located in the path.
Typing "locate DBI.pm" from a command line will tell you whether it is installed and where.
If it is not there you can install if under BSD using the perl ports. I found some information at:

http://cvs.openmicroscopy.org.uk/ome-doc/STABLE/INSTALL.FreeBSD
 
You can also install it on any operating system I think with CPAN.

perl -MCPAN -e shell
install DBI

Or something similar to that, you might have to specifcally specify which database module you want to install such as MySQL which would be something like: DBI::Mysql
 
Is there any way to change where it fetches the files from?

It's trying to log in to ftp.perl.org and ftp.perl.org is not responding, hasn't been all day for me (at home or from any of my servers).
 
Back
Top