Re: Error in installing perl DBI Module on sun 0s box

2008-11-15 Thread Jonathan Leffler
On Sat, Nov 15, 2008 at 1:22 AM, Sureshkumar M (HCL Financial Services) <
[EMAIL PROTECTED]> wrote:

> When I tried to install the Perl DBI module in my machine (sun OS
> 5.8) I am getting below error messages ,Could you please some one help
> me on this...
>
> C)/home/XYZ/TEST/suresh/modules/DBI/DBI-1.607$ perl Makefile.PL
>
>
> Perl 5.008001 required--this is only version 5.00503, stopped at
> Makefile.PL line 10.
>


This is your problem.

Install your own build of Perl (5.10.0, or 5.8.8 at least) and then add DBI
to it.

Or, if that is politically impossible, then you'll need to install a
down-level version of DBI.  But, frankly, you're better off with an up to
date version of Perl.  Leave /usr/bin/perl for the system -- and install
your own working version in a directory ahead of /usr/bin (or /bin) on your
PATH.


-- 
Jonathan Leffler <[EMAIL PROTECTED]>  #include 
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."


Re: Error in installing perl DBI Module on sun 0s box

2008-11-15 Thread Ron Savage
Hi

> Perl 5.008001 required--this is only version 5.00503, stopped at
> Makefile.PL line 10.

Upgrade Perl, just as the message suggests.

But don't install V 5.8. Go straight to V 5.10.

-- 
Ron Savage
[EMAIL PROTECTED]
http://savage.net.au/index.html




DBD::Teradata segmentation fault.

2008-11-15 Thread TOM, ALBERT K (ATTSI)
Hi
I'm trying to get DBD::Teradata to work.

The environment is:
Solaris 10
Perl 5.8.7  (64 bit)
DBI 1.604
DBD::Teradata 1.50 
Teradata client - TTU 13.0 SOLARIS SPARC cliv2.13.00.00.00
Teradata Server - V2R6.1

The sequence of events is:

(1) I changed Makefile.Pl to get these settings for Libraires, Includes
and Compile flags
to allow it to compile.
The additional compile flags were taken from
use Config;
print $Config{ccflags}, "\n";

*   DBD::Teradata will be built using the following
*   directives:
*   Libraries: -L/usr/lib/sparcv9 -lcliv2 -lnet -lsocket -lresolv
-ltdusr
*  -L/opt/teradata/teragss/solaris-sparc/13.00.00.00/lib
-ltdgss
*   Include files: -I/usr/include
*   Compile flags: -D__error_t_defined=1 -xarch=generic64
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

(2) After I got it to compile, error 302 occurred when trying to connect
to a database.
I got more info by setting these 2 environment variables:
$ENV{NETRACE} = 1;
$ENV{COPANOMLOG} = "/tmp/install/teradata/log/netrace_$dte";

SCBinit: NOMEM[1] Error cur_req_buf_len is 65536 maxlen is 32768
DBCHCL: CLICON returned [302]

RCBinit: buffer too big [63000], max [32768]
DBCHCL: CLICON returned [302]

Error 302 is invalid buffer size.

I tried changing req_buf_len & resp_buf_len by setting tdat_reqsize
& tdat_respsize to 1024
when connecting but it didn't help.

$dbh = DBI->connect("dbi:Teradata:$dsn",
$user,
$pswd,
{ RaiseError => 0,
  AutoCommit => 0,
  PrintError => 1,
  tdat_database => $db,
  tdat_reqsize =>  1024
  tdat_respsize => 1024
}

I finally changed the code in Teradata.xs
from
  dbcp->req_buf_len = 65536;
  dbcp->resp_buf_len = 63000;
to
  dbcp->req_buf_len = 32768;
  dbcp->resp_buf_len = 32768;

(3) Changing the code allowed me to get passed Error 302.
But now I'm getting a Segmentation Fault.

Does anyone has any suggestions?
Any help is appreciated.
thank you

Albert Tom




Error in installing perl DBI Module on sun 0s box

2008-11-15 Thread Sureshkumar M (HCL Financial Services)

Hi ALL,

 

  When I tried to install the Perl DBI module in my machine (sun OS
5.8) I am getting below error messages ,Could you please some one help
me on this...

 

 

C)/home/XYZ/TEST/suresh/modules/DBI/DBI-1.607$ perl Makefile.PL

 

Perl 5.008001 required--this is only version 5.00503, stopped at
Makefile.PL line 10.

BEGIN failed--compilation aborted at Makefile.PL line 12.

 

(C)/home/XYZ/TEST/suresh/modules/DBI/DBI-1.607$

 

 

(C)/home/XYZ/TEST/modules/DBI/DBI-1.607$ perl test.pl

test.pl 

DBI test application $Revision: 11566 $

Cannot find blib even in
/home/moarbld/suresh/modules/DBI/DBI-1.607/../../../../..

BEGIN failed--compilation aborted at test.pl line 21.

(C)/home/XYZ/TEST/suresh/modules/DBI/DBI-1.607$

 

 

Regards,

SureshKumar Mani,

 

 

 

 



DISCLAIMER:
---
The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.
---

DBD::Oracle with Oracle 10.1.3

2008-11-15 Thread Ummey Johra
Hi,
I have new Oracle version 10.1.3 in sun4-solaries machine. My DBD:Oracle
version is 1.14. My cgi-perl applications were working fine with oracle 9g.
After getting oracle 10g, I changed DBD:Oracle Makefile.pl and run make and
make install commands. Did not have any problem during compilation. But my
cgi-perl applications do not work and I get the following error in log file
 
install_driver(Oracle) failed: Can't load
'/usr/local/lib/perl5/site_perl/5.8.1/sun4-solaris/auto/DBD/Oracle/Oracle.so
' for module DBD::Oracle: ld.so.1: /usr/bin/perl: fatal: relocation error:
file
/usr/local/lib/perl5/site_perl/5.8.1/sun4-solaris/auto/DBD/Oracle/Oracle.so:
symbol kgefac_: referenced symbol not found at
/usr/local/lib/perl5/5.8.1/sun4-solaris/DynaLoader.pm line 229
 
-Perhaps a required shared library or dll isn't installed where
expected, --
 
Please help me with this issue.
 
Thank you in advance.
Ummey