Re: Question on sybperl etc

"Rob Verschoor" <[email protected]> Sat, 26 May 2007 11:21:17 +0200
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Organization Sypron B.V.
Message-ID <0ef001c79f77$479748d0$6601a8c0@ZEUS>
First, 'libct.so' was the name of the file in 12.x; in 15.0 the library
files all got 'syb' in their name so it's now called 'libsybct.so' (same
logic applies for the other files in OCS-15_0/lib).
So could it be that you've installed the perl modules in a 15.0
environment but you're now running in a 12.5 environment? You should be
able to fix this by making sure that LD_LIBRARY_PATH include
$SYBASE/$SYBASE_OCS/lib for 15.0 (or perhaps copy the 15.0 files into the
12.5 OCS/lib directory if you want a quick hack).

Rob V.

----- Original Message ----- 
From: "William Bell" <[email protected]>
To: "Rob Verschoor" <[email protected]>
Cc: <[email protected]>
Sent: Friday, May 25, 2007 22:21
Subject: Re: Question on sybperl etc


> Hi Rob,
>
> I thought I have it compiled ok.... It compiled and all of the tests
> succeeded so I went ahead with "make install"... I am just testing a
> simple
> "pubs2" perl script and am getting an error....It almost seems like I am
> missing an environment variable or something...
>
> The error is:
> install_driver(Sybase) failed: Can't load
> '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/Sybase/Sybase.so'
> for module DBD::Sybase: libsybct.so: cannot open shared object file: No
> such
> file or directory at
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
> at (eval
> 15)[/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBI.pm:732]
> line 3
> Compilation failed in require at (eval
> 15)[/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBI.pm:732]
> line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at /home/billb/test.pl line 6
>
> The script I am using is very simple....
>
> #!/usr/bin/perl -w
> use strict;
> use DBI;
>
>
> my $dbh =
> DBI->connect("dbi:Sybase:pubs2;host=wmblin01;port=6000","sa","");
>
> my $sth = $dbh->prepare("select * from titles");
> $sth->execute();
>
> $dbh->disconnect();
>
> but when
>
> On 5/25/07, Rob Verschoor <[email protected]> wrote:
>>
>> I'm using DBD::Sybase against 15.0.1 right now...
>>
>> Rob V.
>>
>>
>> ----- Original Message -----
>> From: "William Bell" <[email protected]>
>> To: <[email protected]>
>> Sent: Friday, May 25, 2007 20:52
>> Subject: [SPAM] Question on sybperl etc
>>
>>
>> > Hi,
>> > Have any of the Sybperl or DBD::Sybase or Sybase::* modules been
>> > migrated to support ASE 15 yet?
>> >
>> > Thanks....
>> >
>> > Bill Bell
>> >
>>
>