Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't connect to DBI

Status
Not open for further replies.

cnw40007

Technical User
Mar 4, 2003
35
IE
I have written a perl script to search a database for a name....
On running the script I get an error saying,

Can`t locate DBI.pm in @INC ( @INC contains:
/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005.) at ./test.cgi line 4. Where i have written use dbi;
Can anyone help?
thanks cnw40007

 
Looks like you haven't got DBI installed

Can you use CPAN, or PPM to see if its installed

;P
 
Initially i thought perl5.6.1 came with DBI but i got the same error as above I tried to do ppm but linux didnt like it!so then i tried to install dbi from cpan, when i ran the make,make test and make install commands it spits back errors.What am i doing wrong
 
Don't have linux box here to test.

Have a wise look at the install instructions to see if there are any other dependencies that need to be installed before DBI can be installed.

If you're on a hosted machine, it could be that its worked already, and because you're not root its echoing back a load of crap.

try running this at the command line
Code:
#!/usr/bin/perl
use DBI;
print "Hello World\n";

If that runs then its OK

HTH
;P
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top