PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Perumal, Saravana" <Saravana dot Perumal at fmr dot com>
Subject: RE: Sybperl 2.09 vs Sybase OpenClient 11.1
Date: Sep 15 1998 3:58PM

	Hello Michael,

	Thanks for replying.
	I have included the necessary information for your review.

	I have replied in 2 part:
	1. Information from the FAQ which I get with the sybperl
installation package.
	( your homepage FAQ doesn't have this info, so I am not sure which
one is recent )
	Because of this I raised a doubt whether there is any patch.

	2. Included the error message which I get while using "use
Sybase::CTlib"

	We are trying to use Sybperl for the first time and I am neither a
Sybperl expert or Sybase
	expert.

	Your suggestions would help.

	Thanks,
	Saravana.


	1. Message in the FAQ which comes with sybperl 2.09_05(pack) from
Sybperl homepage.
	
----------------------------------------------------------------------------
----------------
	There are two known problems:
	The Sybase::CTlib module does not work with OpenClient 11.x. I do
not  
	 know what the problem is, and have not been able to investigate
this.
	The test input file for the Sybase::BCP module gets mangled by
WinZip, 
	and this causes the tests for Sybase::BCP to fail. Daniel Durbin
suggests the following fix:

	
----------------------------------------------------------------------------
-----------------
	I have included the error message which I get when I try to use
	use Sybase::CTlib in my perl script.

	( I even tried using following where /opt/sybase is my sybase home
directory.

	  BEGIN {
	        $ENV{SYBASE} = "/opt/sybase";
	} 

	I don't have any errors when I tried "use Sybase::DBlib", it works
without
	any errors.  I am able to issue sql commands and get results back.


	
----------------------------------------------------------------------------
---
	Error Message: while using CTlib module
	
----------------------------------------------------------------------------
---

	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. Check the environment
variable SYBASE
	 if it is not the one you want! Using default locale name: "default"

	Sybase::CTlib initialize: cs_ctx_alloc() failed at
/usr/local/lib/perl5/perl5db.pl line 1136,  chunk 2.

	DynaLoader::bootstrap('Sybase::CTlib') called at
/usr/local/lib/perl5/site_perl/Sybase/CTlib.pm line 845
	        require Sybase/CTlib.pm called at (eval 5) line 2
	        main::BEGIN() called at
/usr/local/lib/perl5/sun4-solaris/5.00404/DynaLoader.pm line 0
	        eval {...} called at
/usr/local/lib/perl5/sun4-solaris/5.00404/DynaLoader.pm line 0
	        eval '($@, $!, $,, $/, $\\, $^W) = @saved;package main; $^D
= $^D | $DB::db_stop;
			
		use Sybase::CTlib;

		;' called at /usr/local/lib/perl5/perl5db.pl line 1164
	        DB::eval called at /usr/local/lib/perl5/perl5db.pl line 1069
	        DB::DB called at -e line 1
	        main::BEGIN() called at
/usr/local/lib/perl5/site_perl/Sybase/CTlib.pm line 0
	        eval {...} called at
/usr/local/lib/perl5/site_perl/Sybase/CTlib.pm line 0
	        eval '($@, $!, $,, $/, $\\, $^W) = @saved;package main; $^D
= $^D | $DB::db_stop;
		
		use Sybase::CTlib;

		;' called at /usr/local/lib/perl5/perl5db.pl line 1164
	        DB::eval called at /usr/local/lib/perl5/perl5db.pl line 1069
	        DB::DB called at -e line 1
		BEGIN failed--compilation aborted at (eval 5) line 2, 
chunk 2.
	        eval '($@, $!, $,, $/, $\\, $^W) = @saved;package main; $^D
= $^D | $DB::db_stop;

		use Sybase::CTlib;

		;' called at /usr/local/lib/perl5/perl5db.pl line 1164
	        DB::eval called at /usr/local/lib/perl5/perl5db.pl line 1069
	        DB::DB called at -e line 1                      
	--------------------------------
	End of Error Message
	--------------------------------



> -----Original Message-----
> From:	Michael Peppler [SMTP:mpeppler@mbay.net]
> Sent:	Tuesday, September 15, 1998 11:00 AM
> To:	Perumal, Saravana
> Subject:	Sybperl 2.09 vs Sybase OpenClient 11.1
> 
> 
> Perumal, Saravana writes:
>  > Hello,
>  > 
>  > We are converting our SQR scripts to perl(5.0) using Sybperl 2.09.
>  > But this version of Sybperl doesn't seem to work with our installation
>  > of Sybase OpenClient CTlib version 11.1.
> 
> It should work.
> 
> What problems are you experiencing?
> 
> Michael
> -- 
> Michael Peppler         -||-  Data Migrations Inc.
> mpeppler@mbay.net       -||-  http://www.mbay.net/~mpeppler
> Int. Sybase User Group  -||-  http://www.isug.com