Hi all,
I tried to run the following script,when it tries to locate DBD::Sybase segmentation
fault is occurring.I tried to trace the error ,it is happenning at install driver
(plese check below the output of the script).
Even my make test of DBD failed .
I am trying it in Redhat6.2 server,with perl5.005053 .
I also installed sybase-common-11.9.2-1,sybase-openclient-11.1.1-1,perl-DBI-1.13-6
rpms are installed.I trying with DBD-Sybase-0.21(Even i tried with DBD-Sybase-0.94_01).
I am trying to connect to a sybase server in a different machine.
Please Help me as soon as posible
Please check the following perl script and its output...
Thanks in advance,
Alima
Source Script:dbtest.pl
#!/usr/bin/perl -w
BEGIN {
$ENV{'SYBASE'} = "/opt/sybase-11.9.2/";
$ENV{'DSQUERY'} = "OPENMOBILE";
}
my (@available_drivers,$dbh) = ();
my ($data_source) = "dbi:Sybase:";
my ($username) = "billing_test";
my ($password) = "test123";
# db-stuff; check the user-id, password and the server-address
use DBI;
use strict;
@available_drivers=DBI->available_drivers;
print ("The available DBD drivers are:@available_drivers.\n");
print "Perl version: $]\n";
print "DBI version: $DBI::VERSION\n";
print "DBD::Sybase version: $DBD::Sybase::VERSION\n";
DBI->trace(9);
$dbh = DBI->connect($data_source,$username,$password) || die "can't connect:
$DBI::errstr";
dbh->disconnect();
OutPut:
Unquoted string "dbh" may clash with future reserved word at dbtest.pl line 37.
Name "DBD::Sybase::VERSION" used only once: possible typo at dbtest.pl line 31.
The available DBD drivers are:ADO ExampleP Proxy Sybase.
Perl version: 5.00503
DBI version: 1.13
Use of uninitialized value at dbtest.pl line 31.
DBD::Sybase version:
DBI 1.13-nothread dispatch trace level set to 9
-> DBI->connect(dbi:Sybase:, billing_test, test123)
-> DBI->install_driver(Sybase) for perl=5.00503 pid=10894 ruid=0 euid=0
Segmentation fault
Yahoo! Messenger
- Instant Messaging, Instant Gratification. And now with new emoticons!