cjhastings1 has asked for the wisdom of the Perl Monks concerning the following question:
The error I'm getting is as follows:use DBI; use strict; my $database = "<server name>"; my $db = "<db name>"; my $uid = "<Sybase ID>"; my $pwd = "<Sybase Password"; my %defaults = ( AutoCommit => 1, # Autocommit enabled. PrintError => 0 # Errors not automatically printed. ); my $dbh = DBI->connect("dbi:SybaseASE:server=$database;database=$db", +"$uid", "$pwd" ); # or die "Cannot connect to $database: $DBI::errstr\n"; $dbh->disconnect; exit(0); __END__
Can't locate loadable object for module DBD::SybaseASE in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at ....
I can see the SybaseASE.pm module is installed in the Sybase folder, but is there a problem with Perl locating it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl 5.20 Sybase 15.7 connect to database error
by genio (Beadle) on Aug 16, 2016 at 18:32 UTC | |
by cjhastings1 (Novice) on Aug 16, 2016 at 18:52 UTC | |
|
Re: Perl 5.20 Sybase 15.7 connect to database error
by Corion (Patriarch) on Aug 16, 2016 at 17:59 UTC | |
by cjhastings1 (Novice) on Aug 16, 2016 at 18:47 UTC | |
by Corion (Patriarch) on Aug 17, 2016 at 06:27 UTC | |
|
Re: Perl 5.20 Sybase 15.7 connect to database error
by VinsWorldcom (Prior) on Aug 16, 2016 at 19:25 UTC |