View Single Post
  #5 (permalink)  
Old 07-02-2009, 02:30 PM
sdstein7 sdstein7 is offline
Registered User
 
Join Date: Jul 2009
Posts: 3
sdstein7 is on a distinguished road
Response to cpdan

cpdan,

The offending line of code is:

my $dbh= DBI->connect("DBI:$db_driver:dbname=$db_name;host=$db_ host;port=$db_port",
$db_user, $db_passwd) or die $DBI::errstr;

$db_driver is 'mysql', $db_name is 'koha', $db_host is 'localhost',
$db_port is 8080

So basically we are trying to connect to a mysql database. I can connect using mysql so I am certain the the parameters are correct. I did not write this code--it is part of the koha distribution.

I hope this answers your question.

Your comment in your last post about Perl versions may be on target. I have noted that the Red Hat distribution of Perl is 5.8.8 and the CPAN stuff that gets installed goes into directories labeled 5.8.9. But all the DBI stuff is in 5.8.9 directories, which are the ones included in the @INC path:

perl -e "print join(\"\n\", @INC);"
/usr/share/koha/lib
/usr/local/lib/perl5/5.8.9/i686-linux
/usr/local/lib/perl5/5.8.9
/usr/local/lib/perl5/site_perl/5.8.9/i686-linux
/usr/local/lib/perl5/site_perl/5.8.9

Thanks for any help you can provide.

Sanford Stein
Reply With Quote