Can't locate in @INC

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

Can't locate 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] Can't locate 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/ line 3.
[Fri Mar 11 10:03:58 2005] [error] [client] BEGIN failed--compilation aborted at /usr/almeorg/public_html/cgi-bin/ line 3.
[Fri Mar 11 10:03:58 2005] [error] [client] Premature end of script headers:

how to solve this

Following are my test_db .pl code


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...
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;


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

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 2 guests