Can't locate Sybase.pm with FreeTDS and DBD:Sybase

From: V79k (v79k_at_yahoo.com)
Date: 03/22/04

  • Next message: Dean Arnold: "Re: DBI and character sets (yet again)"
    Date: Mon, 22 Mar 2004 10:50:44 -0800 (PST)
    To: dbi-users@perl.org
    
    

    Hi,
    Here's my problem. I am trying to connect to SQLServer
    DB using Perl on Linux. So my code has
    use DBI;
    use DBD::Sybase;
    at the top of the code.

    I am also using FreeTDS in /usr/local. So
    [root@localhost local]# pwd
    /usr/local
    [root@localhost local]# ls
    apache DBD-Sybase-1.02 etc info libexec sbin
    src
    bin doc freetds-0.62.1

    Also, the Free TDS libraries are in /usr/local/lib
    [root@localhost lib]# pwd
    /usr/local/lib
    [root@localhost lib]# ls
    libct.a libct.so.2.0 libsybdb.so.4 libtds.so
       libtdssrv.la
    libct.la libsybdb.a libsybdb.so.4.0 libtds.so.3
       libtdssrv.so
    libct.so libsybdb.la libtds.a
    libtds.so.3.0 libtdssrv.so.1
    libct.so.2 libsybdb.so libtds.la

    Also, DBD:Sybase was installed from Micheal Peppler's
    website
    [root@localhost lib]# pwd
    /usr/lib
    [root@localhost lib]# ls
    DBD-Sybase-1.02 libm.so
    ....

    Sybase.pm is present in the above directory.

    I also ran MakeFile.PL script ....
    Also $SYBASE env. variable is
    [root@localhost lib]# echo $SYBASE
    /usr/local

    Now when I try to run my Perl program I get

    $ perl abc.pl
    Can't locate DBD/Sybase.pm in @INC (@INC contains:
    /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
    /usr/lib/perl5/site_perl/5.6.1/i386-linux
    /usr/lib/perl5/site_perl/5.6.1
    /usr/lib/perl5/site_perl/5.6.0/i386-linux
    /usr/lib/perl5/site_perl/5.6.0
    /usr/lib/perl5/site_perl .) at abc.pl line 3.
    BEGIN failed--compilation aborted at abc.pl line 3.

    Why cant it locate the Sybase.pm module? Any
    solutions?

    Thanks,
    VK

    __________________________________
    Do you Yahoo!?
    Yahoo! Finance Tax Center - File online. File on time.
    http://taxes.yahoo.com/filing.html


  • Next message: Dean Arnold: "Re: DBI and character sets (yet again)"

    Relevant Pages

    • Re: How to have perl on a CD (windows)
      ... > memory stick and could run on any windows computer. ... Firstly, Tiny Perl is able to run Perl programs, say from a floppy, with ... pm files either under site/lib or lib. ... Checking the lib.zip file under Tiny Perl reveals that no hash modules have ...
      (comp.lang.perl.misc)
    • Re: Need some module help
      ... use warnings; ... use lib 'Mod'; ... use FindBin qw; ... The module, FindBin, is a standard module and comes bundled with perl. ...
      (perl.beginners)
    • Re: Sol 10 X64 AMD Cannot connect using simple DBI->connect() (tnsping works)
      ... This is an Oracle bug!!!! ... I am suspecting some kind of 32 bit lib problem. ... ultraman# perl -V ... 22886 Pod::Find should ignore SCM files and dirs ...
      (perl.dbi.users)
    • Re: CPAN module local installation question
      ... and architecture directory should be added automagically by the lib pragma. ... a variety of machine types all running different versions of Perl. ... CPAN modules are found in /Library/Perl. ... Web Hosting by West Virginians, ...
      (comp.lang.perl.modules)
    • Re: bash in perl
      ... Can You help me to write the result of 'pwd' in $x? ... It is part of Core Perl, so, unless your version of Perl is broken, it ... *** calling external programs to do things that can be done in Perl is ... fragile (OS dependent, the error checking is harder, etc.) ...
      (perl.beginners)