problem on using DBD:Sybase on Linux

problem on using DBD:Sybase on Linux

Post by Michael Pepple » Fri, 02 Oct 1998 04:00:00




Quote:

> but error occurs quoted as follow:
> install_driver(Sybase) failed: Can't load
> '/usr/lib/perl5/site_perl/i386-linux/auto/DBD/Sybase/Sybase.so' for
> module DBD::Sybase: /opt/sybase/lib/libtcl.so: undefined symbol: bsd_tcp
> at /usr/lib/perl5/i386-linux/5.00404/

You're missing a library (probably -linsck). YOu need to add that to the
EXTRALIBS line in the CONFIG file for DBD::Sybase, then re-run perl
Makefile.PL,
make & make test.

Michael
--
Michael Peppler         -||-  Data Migrations Inc.

Int. Sybase User Group  -||-  http://www.isug.com

 
 
 

problem on using DBD:Sybase on Linux

Post by Hui Chun Kit, Jack » Sat, 03 Oct 1998 04:00:00


Dear all,

    I have installed the Sybase ASE 11.0.3.3 on Redhat 5.1 with DBI 1.02
,perl 5.004_04.
I have problem on using the DBD:Sybase. I am using DBD:Sybase 0.08. Here
is the simple script I wrote to connect to my server.

#!/usr/bin/perl
use DBI;
$dbh = DBI->connect('dbi:Sybase:HKSN', '', '', {RaiseError => 1});
  if(!defined($dbh))
  {
          die "cannot access the database- >",$DBI::errstr,"\n";

  }
......more stuff....

but error occurs quoted as follow:
install_driver(Sybase) failed: Can't load
'/usr/lib/perl5/site_perl/i386-linux/auto/DBD/Sybase/Sybase.so' for
module DBD::Sybase: /opt/sybase/lib/libtcl.so: undefined symbol: bsd_tcp
at /usr/lib/perl5/i386-linux/5.00404/
DynaLoader.pm line 166.

 at (eval 1) line 2

 at sy.pl line 6

    Does anyone here encounter this problem too?? What can I do?
    Thanks!

Best Rgds,

Jacky Hui

 
 
 

problem on using DBD:Sybase on Linux

Post by Hui Chun Kit, Jack » Sat, 03 Oct 1998 04:00:00


Dear all,

    Besides, errors also occurs when I make test with the DBD:Sybase module

quoted as follow for reference:
PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
-I/usr/lib/perl5/i386-linux/5.00404 -I/usr/lib/perl

t/*.t
t/base..............install_driver(Sybase) failed: Can't load
'./blib/arch/auto/DBD/Sybase/Sybase.so' for modu
le DBD::Sybase: /opt/sybase/lib/libtcl.so: undefined symbol: bsd_tcp at
/usr/lib/perl5/i386-linux/5.00404/Dyna
Loader.pm line 166.

 at (eval 1) line 2

 at t/base.t line 18
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
t/main..............install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module
 DBD::Sybase: /opt/sybase/lib/libtcl.so: undefined symbol: bsd_tcp at
/usr/lib/perl5/i386-linux/5.00404/DynaLo
ader.pm line 166.

 at (eval 1) line 2

 at t/main.t line 45
dubious
        Test returned status 2 (wstat 512, 0x200)
Undefined subroutine &Test::Harness::WCOREDUMP called at
/usr/lib/perl5/Test/Harness.pm line 222.

Best Rgds,

Jacky Hui


Quote:> Dear all,

>     I have installed the Sybase ASE 11.0.3.3 on Redhat 5.1 with DBI 1.02
> ,perl 5.004_04.
> I have problem on using the DBD:Sybase. I am using DBD:Sybase 0.08. Here
> is the simple script I wrote to connect to my server.

> #!/usr/bin/perl
> use DBI;
> $dbh = DBI->connect('dbi:Sybase:HKSN', '', '', {RaiseError => 1});
>   if(!defined($dbh))
>   {
>           die "cannot access the database- >",$DBI::errstr,"\n";

>   }
> ......more stuff....

> but error occurs quoted as follow:
> install_driver(Sybase) failed: Can't load
> '/usr/lib/perl5/site_perl/i386-linux/auto/DBD/Sybase/Sybase.so' for
> module DBD::Sybase: /opt/sybase/lib/libtcl.so: undefined symbol: bsd_tcp
> at /usr/lib/perl5/i386-linux/5.00404/
> DynaLoader.pm line 166.

>  at (eval 1) line 2

>  at sy.pl line 6

>     Does anyone here encounter this problem too?? What can I do?
>     Thanks!

> Best Rgds,

> Jacky Hui

 
 
 

1. problems connecting to a ms sql server (using DBD-Sybase and sybase libs)

the problem is this....

I have installed the sybase libraries and the dbd-sybase perl module
but when a i do a make test i get this error message.

PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/i386-linux -I/usr/lib/perl5 -e 'use Test::Harness

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "default",
        LC_ALL = "default",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
t/autocommit........perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "default",
        LC_ALL = "default",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

The context allocation routine failed when it tried to load
localization
files!!
One or more following problems may caused the failure

Your sybase home directory is /opt/sybase-12.5/OCS-12_5. Check the
environment variable SYBASE if it is not the one you want!
Using locale name "default" defined in environment variable LC_ALL
install_driver(Sybase) failed: DBD::Sybase initialize: cs_ctx_alloc()
failed
at /usr/lib/perl5/i386-linux/DynaLoader.pm line 219.
Compilation failed in require at (eval 1) line 3.

what am i doing wrong??
i have the SYBASE variable pointing to the correcto sybase directory
(/opt/sybase-12.5/OCS-12_5), i think it's something with the locale
files
but i'm not shure.

thanks for the help

2. Automatically dropping tasks in sql 6.5

3. Problem using DBD::DB2 with DB2 V6 for Linux

4. help. How can i access a generic table?

5. Problem selecting a column from a view in Sybase using DBI/DBD

6. unix spreadsheets? help!

7. DBD Sybase Linux

8. IA-Cedar Rapids Area-258899--ORACLE-SYBASE-SQLSERVER-Systems Analyst - Oracle, Sybase, SQL server

9. can't make Sybase-DBD under linux

10. HOWTO: DBD:Sybase running on Linux

11. sybase/redhat linux 5.2 install problem- port 7100 definition - sybase-problem.doc (0/1)

12. Oracle and Perl DBI/DBD on Linux Problem

13. Problem compiling DBD::Informix under Linux