В CentOS 5.X не было проблем. yum install perl-DBI perl-DBD-Sybase (тянет за собой freetds) Проверяем: #!/usr/bin/perl use DBI; my ($host,$port,$database,$user,$pass) = ("ХХ.ХХ.ХХ.ХХ","1433","Work","adm","12345678"); my $dbh = DBI -> connect("DBI:Sybase:server=$host:$port;database=$database",$user,$pass); my $sth = $dbh -> prepare('select @@VERSION;'); $sth -> execute(); print "Database: " . $sth -> fetchrow_array(); $sth->finish(); $dbh->disconnect();И получаем: Database: Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor) В CentOS 6.X получаем: *** stack smashing detected ***: /usr/bin/perl terminated ======= Backtrace: ========= /lib/libc.so.6(__fortify_fail+0x4d)[0x3f659d] /lib/libc.so.6(+0xf754a)[0x3f654a] /usr/lib/perl5/vendor_perl/auto/DBD/Sybase/Sybase.so(+0x181c4)[0x4a71c4] /usr/lib/perl5/vendor_perl/auto/DBD/Sybase/Sybase.so(syb_init+0x622)[0x49e082] /usr/lib/perl5/vendor_perl/auto/DBD/Sybase/Sybase.so(boot_DBD__Sybase+0xa8f)[0x49306f] /usr/lib/perl5/CORE/libperl.so(Perl_pp_entersub+0x5c3)[0x2357b3] /usr/lib/perl5/CORE/libperl.so(Perl_runops_standard+0x28)[0x233928] /usr/lib/perl5/CORE/libperl.so(perl_run+0x344)[0x1d54e4] /usr/bin/perl(main+0x106)[0x80489e6] /lib/libc.so.6(__libc_start_main+0xe6)[0x315ce6] /usr/bin/perl[0x8048841] ======= Memory map: ======== 00110000-00159000 r-xp 00000000 fd:00 131752 /lib/libfreebl3.so 00159000-0015a000 r--p 00048000 fd:00 131752 /lib/libfreebl3.so .............................................. Аварийный останов Есть опыт в лечении?
|