Can't locate dbi.pm in @INC

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Can't locate dbi.pm in @INC

Postby arun » 11. March 2005 05:40

i am working with xampp

while connect to database i got the following error

[Fri Mar 11 10:03:58 2005] [error] [client 127.0.0.1] Can't locate dbi.pm in @INC (@INC contains: /opt/lampp/lib/perl5/5.8.6/i686-linux /opt/lampp/lib/perl5/5.8.6 /opt/lampp/lib/perl5/site_perl/5.8.6/i686-linux /opt/lampp/lib/perl5/site_perl/5.8.6 /opt/lampp/lib/perl5/site_perl .) at /usr/almeorg/public_html/cgi-bin/test_db.pl line 3.
[Fri Mar 11 10:03:58 2005] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /usr/almeorg/public_html/cgi-bin/test_db.pl line 3.
[Fri Mar 11 10:03:58 2005] [error] [client 127.0.0.1] Premature end of script headers: test_db.pl

how to solve this

Following are my test_db .pl code

#!/usr/bin/perl

use dbi;
use CGI;

my $driver = "mysql";
my $server = "localhost";
my $database = "test";
my $url = "DBI:$driver:$database:$server";
my $user = "";
my $password = "";
DBI->connect( $url, $user, $password ) or die "Failure!\n";
print "Success!\n";


any help...
arun
 
Posts: 8
Joined: 08. March 2005 13:09

Postby Dave_L » 11. March 2005 15:53

My Perl skills are rusty, but I think it's case-sensitive. Try changing:

use dbi;

To:

use DBI;
User avatar
Dave_L
 
Posts: 212
Joined: 23. October 2004 00:43


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 23 guests