I have Fedora Linux 4 and perl version 5.8.6. Last week i installed the perl DBD::Sybase module along with freetds and everything was working fine. Recently I have installed Adobe acroread v7 and i had problem in opening PDF files. Adobe screen use to come and disappear. Later seachig website i used the command "yum -y install compat-libstdc++-33" and I could make adobe acroread to work fine. But after this I have problem with DBD::Sybase module. I have a test script which checks the connectivity and code is as below
#! /opt/ActivePerl-5.8/bin/perl # # test the SQL Server database # use DBI ; $user = 'CORETEC\genesis' ; $passwd = 'genesis' ; #$dbh = DBI->connect('DBI:Sybase:server=Tor-sql',$user,$passwd); $dbh = DBI->connect('DBI:Sybase:server=Tor-Sql',$user,$passwd); $dbh->do("use FEE"); $action = $dbh->prepare("sp_help") ; $action->execute ; $rows = $action->rows ; print "rows is $rows\n"; while ( @first = $action->fetchrow_array ) { foreach $field ( @first ) { print "$field\t"; } print "\n"; } exit(0);
when I use the command "perl test_sql2.pl" I am getting the following error message
install_driver(Sybase) failed: Can't load '/usr/lib/perl5/site_perl/5. +8.6/i386-linux-thread-multi/auto/DBD/Sybase/Sybase.so' for module DBD +::Sybase: libct.so.3: cannot open shared object file: No such file or + directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader +.pm line 230. at (eval 3) line 3 Compilation failed in require at (eval 3) line 3. Perhaps a required shared library or dll isn't installed where expecte +d at test_sql2.pl line 13

It was working just fine untill i installed the Adobe. So i used the "yum -y install libct.so.3" and still i have the problem
I even tried installing SYBASE version 15 and problem is same. Do i need to install any other to modify the libct.so.3 ? Help me how can i fix this issue ? and make DBD:Sybase to work

In reply to dbd sybase & freetds & lib problem by shreedara

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.