perl.dbi.users http://www.nntp.perl.org/group/perl.dbi.users/ ANNOUNCE DBI-1.627 by Tim Bunce

From: Tim Bunce file: $CPAN/authors/id/T/TI/TIMB/DBI-1.627.tar.gz
size: 585833 bytes
md5: aab49be51b0f4867a1894145b023d2c5


The primary DBI repository is now on github under the
ownership of the "perl5-dbi" team:

https://github.com/perl5-dbi/dbi
https://github.com/perl5-dbi?tab=members


=head2 Changes in DBI 1.627 - 16th May 2013

Fixed VERSION regression in DBI::SQL::Nano [Tim Bunce]

=head2 Changes in DBI 1.626 - 15th May 2013

Fixed pod text/link was reversed in a few cases RT#85168
[H.Merijn Brand]

Handle aliasing of STORE'd attributes in DBI::DBD::SqlEngine
[Jens Rehsack]

Updated repository URI to git [Jens Rehsack]

Fixed skip() count arg in t/48dbi_dbd_sqlengine.t [Tim Bunce]

=head2 Changes in DBI 1.625 (svn r15595) 28th March 2013

Fixed heap-use-after-free during global destruction RT#75614
thanks to Reini Urban.
Fixed ignoring RootClass attribute during connect() by
DBI::DBD::SqlEngine reported in RT#84260 by Michael Schout

=head2 Changes in DBI 1.624 (svn r15576) 22nd March 2013

Fixed Gofer for hash randomization in perl 5.17.10+ RT#84146

Clarify docs for can() re RT#83207

=cut

Enjoy!

Tim.

2013-05-17T07:35:56Z
RE: (Fwd) Perl DBI question by Vancura, Mark D

From: Vancura, Mark D Bruce,
Thanks very much, I do see it in the several comments, and it appears to work as well!

Thanks to Tim and then particularly Bruce for showing me the way, I do appreciate it!
So in a nutshell:

When a mysql command executed in a perl DBI do or execute method:
load data local infile 'TEMP_LOAD_DATA_7318' into table ports ;

Gives the error message:
DBD::mysql::db do failed: The used command is not allowed with this MySQL version

It is because of the special treatment of load data, explained in 6.1.6. Security Issues with LOAD DATA LOCAL

*If you use LOAD DATA LOCAL in Perl scripts or other programs that read the [client] group from option files, you can add the local-infile=1 option to that group. However, to keep this from causing problems for programs that do not understand local-infile, specify it using the loose- prefix:
[client]
loose-local-infile=1
*If LOAD DATA LOCAL is disabled, either in the server or the client, a client that attempts to issue such a statement receives the following error message:
ERROR 1148: The used command is not allowed with this MySQL version

And the "option files" can be the dsn setup line in my perl program:
my $dsn = "DBI:mysql:database=test;host=myhost;mysql_local_infile=1;"

And then the load data local infile command will work without this error, and load the data!

I hope this helps.

Mark Vancura
LSI Corporation

-----Original Message-----
From: Bruce Johnson [mailto:johnson@pharmacy.arizona.edu]
Sent: Thursday, May 09, 2013 12:10 PM
Cc: dbi-users@perl.org (dbi-users@perl.org)
Subject: Re: (Fwd) Perl DBI question


On May 9, 2013, at 10:47 AM, "Vancura, Mark D (Mark)" <Mark.Vancura@lsi.com> wrote:

> Bruce,
> Thanks, the explanation makes sense, so I need to figure out how to
> follow through on this documented suggestion from: 6.1.6. Security
> Issues with LOAD DATA LOCAL
>
> *If you use LOAD DATA LOCAL in Perl scripts or other programs that read the [client] group from option files, you can add the local-infile=1 option to that group. However, to keep this from causing problems for programs that do not understand local-infile, specify it using the loose- prefix:
> [client]
> loose-local-infile=1
>
> *If LOAD DATA LOCAL is disabled, either in the server or the client, a client that attempts to issue such a statement receives the following error message:
> ERROR 1148: The used command is not allowed with this MySQL version
>
> Thus this fits my situation exactly, I just have to learn where the
> "option files" are and how to put the [client] loose-local-infile=1 into it.
>
> Any suggestions where to look this up?

right there in theat section you looked at, down in the comments is


"For use in perl DBI scripts, adding an option at the end of the data source definition for DBI->connect fixes the LOAD DATA LOCAL problem in some situations...

use strict;
use DBI;
my $dsn = "DBI:mysql:mydb;mysql_local_infile=1";
my $user = "me";
my $password = "secret";
my $dbh = DBI->connect($dsn,$user,$password);"

the $dsn creation statement is where you can put a ton of options; mysql-only ones would be documented in the DBD:mysql documentation, I'll bet.


--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs




2013-05-09T19:39:45Z
Re: (Fwd) Perl DBI question by Bruce Johnson

From: Bruce Johnson
On May 9, 2013, at 10:47 AM, "Vancura, Mark D (Mark)" <Mark.Vancura@lsi.com> wrote:

> Bruce,
> Thanks, the explanation makes sense, so I need to figure out how to follow through
> on this documented suggestion from: 6.1.6. Security Issues with LOAD DATA LOCAL
>
> *If you use LOAD DATA LOCAL in Perl scripts or other programs that read the [client] group from option files, you can add the local-infile=1 option to that group. However, to keep this from causing problems for programs that do not understand local-infile, specify it using the loose- prefix:
> [client]
> loose-local-infile=1
>
> *If LOAD DATA LOCAL is disabled, either in the server or the client, a client that attempts to issue such a statement receives the following error message:
> ERROR 1148: The used command is not allowed with this MySQL version
>
> Thus this fits my situation exactly, I just have to learn where the "option files" are
> and how to put the [client] loose-local-infile=1 into it.
>
> Any suggestions where to look this up?

right there in theat section you looked at, down in the comments is


"For use in perl DBI scripts, adding an option at the end of the data source definition for DBI->connect fixes the LOAD DATA LOCAL problem in some situations...

use strict;
use DBI;
my $dsn = "DBI:mysql:mydb;mysql_local_infile=1";
my $user = "me";
my $password = "secret";
my $dbh = DBI->connect($dsn,$user,$password);"

the $dsn creation statement is where you can put a ton of options; mysql-only ones would be documented in the DBD:mysql documentation, I'll bet.


--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs


2013-05-09T18:10:00Z
RE: (Fwd) Perl DBI question by Vancura, Mark D

From: Vancura, Mark D Bruce,
Thanks, the explanation makes sense, so I need to figure out how to follow through
on this documented suggestion from: 6.1.6. Security Issues with LOAD DATA LOCAL

*If you use LOAD DATA LOCAL in Perl scripts or other programs that read the [client] group from option files, you can add the local-infile=1 option to that group. However, to keep this from causing problems for programs that do not understand local-infile, specify it using the loose- prefix:
[client]
loose-local-infile=1

*If LOAD DATA LOCAL is disabled, either in the server or the client, a client that attempts to issue such a statement receives the following error message:
ERROR 1148: The used command is not allowed with this MySQL version

Thus this fits my situation exactly, I just have to learn where the "option files" are
and how to put the [client] loose-local-infile=1 into it.

Any suggestions where to look this up?

Thanks again for your help with this!

Mark Vancura

-----Original Message-----
From: Bruce Johnson [mailto:johnson@pharmacy.arizona.edu]
Sent: Thursday, May 09, 2013 11:26 AM
To: dbi-users@perl.org (dbi-users@perl.org)
Subject: Re: (Fwd) Perl DBI question


On May 9, 2013, at 9:37 AM, Tim.Bunce@pobox.com wrote:

>
> However, then I want to put data into it, with a command like the following:
>
>
>
> load data local infile 'TEMP_LOAD_DATA_26021' into table ports ;
>
>
>
> And I get:
>
> DBD::mysql::db do failed: The used command is not allowed with this MySQL version at
> read_excel_write_mysql.pl line 140.

I find this in the MySQL docs:

"If the statement fails, it is likely that your MySQL installation does not have local file capability enabled by default. See Section 6.1.6, "Security Issues with LOAD DATA LOCAL", for information on how to change this."

<http://dev.mysql.com/doc/refman/5.0/en/loading-tables.html>

--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs




2013-05-09T17:48:06Z
Re: (Fwd) Perl DBI question by Bruce Johnson <p>From: Bruce Johnson <br/>On May 9, 2013, at 9:37 AM, Tim.Bunce@pobox.com wrote:<br/><br/>&gt; <br/>&gt; However, then I want to put data into it, with a command like the following:<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; load data local infile &#39;TEMP_LOAD_DATA_26021&#39; into table ports ;<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; And I get:<br/>&gt; <br/>&gt; DBD::mysql::db do failed: The used command is not allowed with this MySQL version at<br/>&gt; read_excel_write_mysql.pl line 140.<br/><br/>I find this in the MySQL docs:<br/><br/>&quot;If the statement fails, it is likely that your MySQL installation does not have local file capability enabled by default. See Section 6.1.6, &ldquo;Security Issues with LOAD DATA LOCAL&rdquo;, for information on how to change this.&quot;<br/><br/>&lt;http://dev.mysql.com/doc/refman/5.0/en/loading-tables.html&gt;<br/><br/>-- <br/>Bruce Johnson<br/>University of Arizona<br/>College of Pharmacy<br/>Information Technology Group<br/><br/>Institutions do not have opinions, merely customs<br/><br/><br/></p> 2013-05-09T17:26:35Z (Fwd) Perl DBI question by Tim.Bunce@pobox.com

From: Tim.Bunce@pobox.com ----- Forwarded message from "Vancura, Mark D (Mark)" <Mark.Vancura@lsi.com> -----

Date: Thu, 9 May 2013 11:05:37 -0400
From: "Vancura, Mark D (Mark)" <Mark.Vancura@lsi.com>
To: "Tim.Bunce@pobox.com" <Tim.Bunce@pobox.com>
Subject: Perl DBI question

Tim,

I am newly trying to make Perl and DBI work with mysql, with some success, e.g. I have been

able to get connected, accessing a database, and create a table in it, with this command:

MySQL_command = create table ports (

PortName varchar(40),

direction enum('input','output','inout'),

digital_analog enum('digital','analog'),

port_pad enum('port','pad'),

powerSupplies varchar(20) ) ;

executed create table command



However, then I want to put data into it, with a command like the following:



load data local infile 'TEMP_LOAD_DATA_26021' into table ports ;



And I get:

DBD::mysql::db do failed: The used command is not allowed with this MySQL version at
read_excel_write_mysql.pl line 140.

DBD::mysql::db do failed: The used command is not allowed with this MySQL version at
read_excel_write_mysql.pl line 140.



Whether I "do" it or "prepare" and then "execute" it.



If I run /usr/bin/mysql interactively, these commands are completely successful, so it hardly seems like
a "MySQL version" issue.



But I also have not been able to find that message in any of the DBI/DBD code, thus I suspect part of it
is coming from MySQL.



Is there some permission issue related to "Load data local infile" that I can/must manage. I am
currently running as the "root" of

mysql, and thus I expect I have, or can get any permission necessary.



Thanks for any help you can provide.



Mark Vancura

LSI Corporation.





----- End forwarded message -----

2013-05-09T16:38:03Z
Re: Huh? 4=3? by Tim Bunce

From: Tim Bunce On Wed, May 08, 2013 at 10:58:02AM -0700, felix@crowfix.com wrote:
> On Wed, May 08, 2013 at 09:43:27AM -0700, Bill Ward wrote:
> > Cool. That whole scalar vs list context thing is one of Perl's biggest
> > strengths, but also one of its biggest weaknesses (in that it is a common
> > source of bugs like this). When you see head-scratching problems, it's one
> > of the first things to look for.
>
> Just guessing here, not familiar with the particular code in question.
> But I have been bitten a few times by code which returns false in the
> 'proper' manner
>
> return;
>
> instead of forcing a scalar return
>
> return undef;
>
> or list return
>
> return ();

There is no difference between "return;" and "return ();".
Both return an empty list when called in list context
and an undef when called in scalar context.

The "return ();" style does serve as a reminder to the reader.

> Is that what's going on here -- the original code imparted a list
> context, which triggered another perl gotcha, whereby missing list
> values simply disappear:
>
> scalar(1,2,,4,,6) ---> 4, not 6

That returns 6, or rather, it returns whatever happens to be the last value.

Tim.

2013-05-09T14:48:15Z
Re: Huh? 4=3? by Derek Jones <p>From: Derek Jones Hi all,<br/><br/>&gt; <br/>&gt; You are right -- but this produces 4 first, as I had always thought it<br/>&gt; would, and then 6, as I don&#39;t quite understand. I would never use<br/>&gt; that kind of expression, and I sorta maybe understand why it says 6,<br/>&gt; but only in hindsight.<br/>&gt; <br/>&gt; #!/usr/bin/perl<br/>&gt; <br/>&gt; my @ary = (1,2,,4,,6);<br/>&gt; print &quot;Step 1: &quot;, scalar(@ary), &quot;\n&quot;;<br/>&gt; print &quot;Step 2: &quot;, scalar(1,2,,4,,6), &quot;\n&quot;;<br/><br/>In the first example, scalar is operating on the array to give you its size. So you do indeed get 4, because only 4 elements are allocated. That is *indeed* an unusual and somewhat apparently counterintutive feature since very often in Perl, otherwise &quot;undefined values&quot; have storage autovifified when assigned under the hood and if interrogated with the defined operator will give you false. i.e. &quot;the box is there but empty&quot;.<br/><br/>If you want to tell if the element is there at all - you can use exists.<br/><br/>E.g. <br/><br/>print &quot;Hi there element 4\n&quot; if exists $ary[4];<br/>print &quot;Hi there element 5\n&quot; if exists $ary[5];<br/><br/>which - in the case of @ary above would not print anything since only elements 0..3 exist.<br/><br/>If you wanted 6 elements, as was noted earlier, you would have to preserve the indexing of the &quot;missing&quot; elements by using undef (see below).<br/><br/>In the 2nd example, as we&#39;ve noted, - you are simply getting the last value in a list - 6 in this case.<br/><br/>So, the question is - why does Perl not keep the otherwise &quot;undefined&quot; elements in the list when they are being represented by ,, ?<br/><br/>And the answer is unusual in that it&#39;s still seeing <br/><br/>my @ary = (1,2,,4,,6);<br/><br/>as a sequence on the right hand side - in which there are only 4 scalar items.<br/><br/>So, to make it have 6, you&#39;d say:<br/><br/>my @ary = (1,2,undef,4,undef,6);<br/><br/>That will autovivify all 6 elements, each of which will exist now according to exists, but only 4 of which will have defined values according to defined.<br/><br/>Here&#39;s an updated version of your example:<br/><br/>------<br/><br/>#!/usr/bin/perl<br/><br/>print &quot;Original\n&quot;;<br/><br/>my @ary = (1,2,,4,,6);<br/><br/>print &quot;Step 1: &quot;, scalar(@ary), &quot;\n&quot;;<br/>print &quot;Step 2: &quot;, scalar(1,2,,4,,6), &quot;\n&quot;;<br/><br/>print &quot;Hi there element 4\n&quot; if exists $ary[4]; # Does not print<br/>print &quot;Hi there element 5\n&quot; if exists $ary[5]; # Does not print<br/><br/>print &quot;New\n&quot;;<br/><br/>my @ary2 = (1,2,undef,4,undef,6);<br/><br/>print &quot;Step 1: &quot;, scalar(@ary2), &quot;\n&quot;;<br/>print &quot;Step 2: &quot;, scalar(1,2,undef,4,undef,6), &quot;\n&quot;;<br/><br/>print &quot;Hi there element 4\n&quot; if exists $ary2[4]; #Now prints<br/>print &quot;Hi there element 5\n&quot; if exists $ary2[5] #Now prints<br/><br/><br/>------<br/><br/>This is somewhat counterintuitive in that, if you had an array where you specified the size of a slice on the left, Perl would automatically allocate that number of elements and automatically assign undef to the ones not otherwise filled. But&hellip;. not in the way you expect.<br/><br/>E.g.<br/><br/>@ary3[0..5] = (1,2,,4,,6);<br/><br/>Does *not* preserve the gaps - for the exact same reason as above. But, you do get elements 4 and 5 now - but it&#39;s *those* that are undef - and the actual list (1,2,4,6) gets assigned to elements 0..3<br/><br/>E.g.<br/><br/><br/>print &quot;New2\n&quot;;<br/><br/>my @ary3;<br/><br/>@ary3[0..5] = (1,2,,4,,6);<br/><br/>print &quot;Size: &quot;, scalar(@ary3), &quot;\n&quot;;<br/><br/>print &quot;Hi there element 4\n&quot; if exists $ary3[4]; #Prints<br/>print &quot;Hi there element 5\n&quot; if exists $ary3[5]; #Prints<br/><br/>print &quot;Hidef 4\n&quot; if defined $ary3[4]; #Does not print<br/>print &quot;Hidef 5\n&quot; if defined $ary3[5]; #Does not print<br/><br/><br/>$&quot;=&quot;:&quot;;<br/><br/>print &quot;Elements\n&quot;;<br/><br/>print &quot;--&gt;@ary3&lt;--\n&quot;; # Notice the empty (undefined) two elements at the *end*&hellip; ;-)<br/><br/>Kind regards<br/><br/>Derek.<br/><br/><br/></p> 2013-05-09T03:50:39Z Re: Huh? 4=3? by felix

From: felix On Wed, May 08, 2013 at 06:22:09PM -0700, James Marshall wrote:
> It shows 6 because a comma-separated literal list, when interpreted as a
> scalar, evaluates to the final value in the list, not the length of the
> list. If you evaluate "scalar(1,2,,4,,7)", it will equal 7. That's the
> comma operator at work-- even though it looks like a list (and both use
> commas), it's really just a sequential set of expressions.

I think I've forgotten more useless perl trivia than I should have...
I use the comma operator sometimes, but never inside scalar(). Didn't
recognize it. TMTOWTMakeAMess.

--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o

2013-05-09T02:54:30Z
Re: Huh? 4=3? by James Marshall

From: James Marshall It shows 6 because a comma-separated literal list, when interpreted as a
scalar, evaluates to the final value in the list, not the length of the
list. If you evaluate "scalar(1,2,,4,,7)", it will equal 7. That's the
comma operator at work-- even though it looks like a list (and both use
commas), it's really just a sequential set of expressions.

Cheers,
James


On Wed, May 8, 2013 at 5:14 PM, <felix@crowfix.com> wrote:

> On Wed, May 08, 2013 at 02:04:37PM -0400, Derek Jones wrote:
> > Huh?
> >
> > That produces 6 - as it should. What version of Perl are you working
> with?
>
> > On May 8, 2013, at 1:58 PM, felix@crowfix.com wrote:
> >
> > > scalar(1,2,,4,,6)
>
> You are right -- but this produces 4 first, as I had always thought it
> would, and then 6, as I don't quite understand. I would never use
> that kind of expression, and I sorta maybe understand why it says 6,
> but only in hindsight.
>
> #!/usr/bin/perl
>
> my @ary = (1,2,,4,,6);
> print "Step 1: ", scalar(@ary), "\n";
> print "Step 2: ", scalar(1,2,,4,,6), "\n";
>
> --
> ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
> Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
> GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license
> #4933
> I've found a solution to Fermat's Last Theorem but I see I've run out of
> room o
>

2013-05-09T01:22:28Z
Re: Huh? 4=3? by felix

From: felix On Wed, May 08, 2013 at 02:04:37PM -0400, Derek Jones wrote:
> Huh?
>
> That produces 6 - as it should. What version of Perl are you working with?

> On May 8, 2013, at 1:58 PM, felix@crowfix.com wrote:
>
> > scalar(1,2,,4,,6)

You are right -- but this produces 4 first, as I had always thought it
would, and then 6, as I don't quite understand. I would never use
that kind of expression, and I sorta maybe understand why it says 6,
but only in hindsight.

#!/usr/bin/perl

my @ary = (1,2,,4,,6);
print "Step 1: ", scalar(@ary), "\n";
print "Step 2: ", scalar(1,2,,4,,6), "\n";

--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o

2013-05-09T00:15:14Z
Re: Huh? 4=3? by Chad Wallace

From: Chad Wallace On Wed, 8 May 2013 09:30:18 -0700
Bill Ward <bill@wards.net> wrote:

> My guess is that get_value() is returning an empty array rather than
> an undef scalar when the values are null. Try copying each one to a
> scalar variable and including the list of variables in the execute().
> It'd be more readable that way anyway. Or if you must put them all
> one one line like this, add the scalar() function on each argument.

I use this idiom:

... get_value(...) || undef, ...get_value(...) || undef, ...

If you don't want undef, you can use "|| ''" or "|| 0" instead.


> On Wed, May 8, 2013 at 9:18 AM, Bruce Johnson
> <johnson@pharmacy.arizona.edu>wrote:
>
> > Getting the error:
> >
> > DBD::Oracle::st execute failed: called with 3 bind variables when 4
> > are needed [for Statement "insert into employee_fte_annualrate_l
> > (emplid, emptype_cd, fte, annual_rate) values(?,?,?,?)" with
> > ParamValues: :p1='22057713', :p2='R', :p3='1', :p4='47311']
> > at /home/oraweb/perl/frs/ kfsupdate.pl line 64, <DATA> line 581.
> >
> > I'm pretty sure I count 4 placeholders and 4 parameter values in
> > that error message, so where is the '3 bind variables' coming from?
> >
> > here's the cursor definition:
> >
> > my $csr_emp_info = $lda->prepare("insert into
> > employee_fte_annualrate_l (emplid, emptype_cd, fte, annual_rate)
> > values(?,?,?,?)");
> >
> > I'm pulling the data from an LDAP query, here's the offending line
> > 64 (where $mesg is the returned LDAP object):
> >
> > $csr_emp_info->execute($mesg->entry($n)->get_value('emplId'),
> > $mesg->entry($n)->get_value('employeeType'),$mesg->entry($n)->get_value('employeeFTE'),$mesg->entry($n)->get_value('employeeTotalAnnualRate'));
> >
> > All the columns allow null entries, and these are all single-valued
> > entries in the LDAP schema.
> >
> >
> > --
> > Bruce Johnson
> > University of Arizona
> > College of Pharmacy
> > Information Technology Group
> >
> > Institutions do not have opinions, merely customs
> >
> >
> >
>
>


--

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0

2013-05-08T19:47:58Z
Re: Huh? 4=3? by Bruce Johnson

From: Bruce Johnson
On May 8, 2013, at 10:58 AM, felix@crowfix.com wrote:

>
> Is that what's going on here -- the original code imparted a list
> context, which triggered another perl gotcha, whereby missing list
> values simply disappear:
>

And I remember now the reason the error message is confusing, I'll bet that was an actual bug I discovered in (iirc) DBI or DBD::Oracle which was fixed, but not on this particular server, because we're still constrained to running a very old version for various reasons. The error message actually displays the values for the last successful insert not the one that failed.

Mystery now solved.

--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs


2013-05-08T18:21:29Z
Re: Huh? 4=3? by felix

From: felix On Wed, May 08, 2013 at 09:43:27AM -0700, Bill Ward wrote:
> Cool. That whole scalar vs list context thing is one of Perl's biggest
> strengths, but also one of its biggest weaknesses (in that it is a common
> source of bugs like this). When you see head-scratching problems, it's one
> of the first things to look for.

Just guessing here, not familiar with the particular code in question.
But I have been bitten a few times by code which returns false in the
'proper' manner

return;

instead of forcing a scalar return

return undef;

or list return

return ();

Is that what's going on here -- the original code imparted a list
context, which triggered another perl gotcha, whereby missing list
values simply disappear:

scalar(1,2,,4,,6) ---> 4, not 6

I understand and appreciate most of Perl's little tricks, but they
sometimes catch me by surprise and elicit a few curses while debugging.

--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o

2013-05-08T17:58:26Z
Re: Huh? 4=3? by Bill Ward <p>From: Bill Ward Cool. That whole scalar vs list context thing is one of Perl&#39;s biggest<br/>strengths, but also one of its biggest weaknesses (in that it is a common<br/>source of bugs like this). When you see head-scratching problems, it&#39;s one<br/>of the first things to look for.<br/><br/><br/>On Wed, May 8, 2013 at 9:39 AM, Bruce Johnson<br/>&lt;johnson@pharmacy.arizona.edu&gt;wrote:<br/><br/>&gt; Well, changing the code to:<br/>&gt;<br/>&gt; my $eid=$mesg-&gt;entry($n)-&gt;get_value(&#39;emplId&#39;);<br/>&gt; my $etp=$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeType&#39;);<br/>&gt; my $efte=$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeFTE&#39;);<br/>&gt; my $ear=$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeTotalAnnualRate&#39;);<br/>&gt;<br/>&gt; $csr_emp_info-&gt;execute($eid,$etp,$efte,$ear);<br/>&gt;<br/>&gt; like you suggested fixed it.<br/>&gt;<br/>&gt; Thanks.<br/>&gt;<br/>&gt; On May 8, 2013, at 9:30 AM, Bill Ward &lt;bill@wards.net&gt; wrote:<br/>&gt;<br/>&gt; &gt; My guess is that get_value() is returning an empty array rather than an<br/>&gt; undef scalar when the values are null. Try copying each one to a scalar<br/>&gt; variable and including the list of variables in the execute(). It&#39;d be more<br/>&gt; readable that way anyway. Or if you must put them all one one line like<br/>&gt; this, add the scalar() function on each argument.<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt; On Wed, May 8, 2013 at 9:18 AM, Bruce Johnson &lt;<br/>&gt; johnson@pharmacy.arizona.edu&gt; wrote:<br/>&gt; &gt; Getting the error:<br/>&gt; &gt;<br/>&gt; &gt; DBD::Oracle::st execute failed: called with 3 bind variables when 4 are<br/>&gt; needed [for Statement &quot;insert into employee_fte_annualrate_l (emplid,<br/>&gt; emptype_cd, fte, annual_rate) values(?,?,?,?)&quot; with ParamValues:<br/>&gt; :p1=&#39;22057713&#39;, :p2=&#39;R&#39;, :p3=&#39;1&#39;, :p4=&#39;47311&#39;] at /home/oraweb/perl/frs/<br/>&gt; kfsupdate.pl line 64, &lt;DATA&gt; line 581.<br/>&gt; &gt;<br/>&gt; &gt; I&#39;m pretty sure I count 4 placeholders and 4 parameter values in that<br/>&gt; error message, so where is the &#39;3 bind variables&#39; coming from?<br/>&gt; &gt;<br/>&gt; &gt; here&#39;s the cursor definition:<br/>&gt; &gt;<br/>&gt; &gt; my $csr_emp_info = $lda-&gt;prepare(&quot;insert into employee_fte_annualrate_l<br/>&gt; (emplid, emptype_cd, fte, annual_rate) values(?,?,?,?)&quot;);<br/>&gt; &gt;<br/>&gt; &gt; I&#39;m pulling the data from an LDAP query, here&#39;s the offending line 64<br/>&gt; (where $mesg is the returned LDAP object):<br/>&gt; &gt;<br/>&gt; &gt; $csr_emp_info-&gt;execute($mesg-&gt;entry($n)-&gt;get_value(&#39;emplId&#39;),<br/>&gt; $mesg-&gt;entry($n)-&gt;get_value(&#39;employeeType&#39;),$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeFTE&#39;),$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeTotalAnnualRate&#39;));<br/>&gt; &gt;<br/>&gt; &gt; All the columns allow null entries, and these are all single-valued<br/>&gt; entries in the LDAP schema.<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt; --<br/>&gt; &gt; Bruce Johnson<br/>&gt; &gt; University of Arizona<br/>&gt; &gt; College of Pharmacy<br/>&gt; &gt; Information Technology Group<br/>&gt; &gt;<br/>&gt; &gt; Institutions do not have opinions, merely customs<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt; --<br/>&gt; &gt; Check out my LEGO blog at brickpile.com<br/>&gt; &gt; Follow/friend me: Facebook &bull; Flickr &bull; Twitter &bull; LinkedIn<br/>&gt;<br/>&gt; --<br/>&gt; Bruce Johnson<br/>&gt; University of Arizona<br/>&gt; College of Pharmacy<br/>&gt; Information Technology Group<br/>&gt;<br/>&gt; Institutions do not have opinions, merely customs<br/>&gt;<br/>&gt;<br/>&gt;<br/><br/><br/>-- <br/>Check out my LEGO blog at brickpile.com &lt;http://www.brickpile.com/&gt;<br/>Follow/friend me: Facebook &lt;http://facebook.com/billward&gt; &bull;<br/>Flickr&lt;http://flickr.com/photos/billward/&gt;&bull;<br/>Twitter &lt;http://twitter.com/williamward&gt; &bull;<br/>LinkedIn&lt;http://www.linkedin.com/pub/william-ward/63/393/985/&gt;<br/><br/></p> 2013-05-08T16:44:19Z Re: Huh? 4=3? by Bruce Johnson <p>From: Bruce Johnson Well, changing the code to:<br/><br/>my $eid=$mesg-&gt;entry($n)-&gt;get_value(&#39;emplId&#39;);<br/>my $etp=$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeType&#39;);<br/>my $efte=$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeFTE&#39;);<br/>my $ear=$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeTotalAnnualRate&#39;);<br/> <br/>$csr_emp_info-&gt;execute($eid,$etp,$efte,$ear);<br/><br/>like you suggested fixed it.<br/><br/>Thanks.<br/><br/>On May 8, 2013, at 9:30 AM, Bill Ward &lt;bill@wards.net&gt; wrote:<br/><br/>&gt; My guess is that get_value() is returning an empty array rather than an undef scalar when the values are null. Try copying each one to a scalar variable and including the list of variables in the execute(). It&#39;d be more readable that way anyway. Or if you must put them all one one line like this, add the scalar() function on each argument.<br/>&gt; <br/>&gt; <br/>&gt; On Wed, May 8, 2013 at 9:18 AM, Bruce Johnson &lt;johnson@pharmacy.arizona.edu&gt; wrote:<br/>&gt; Getting the error:<br/>&gt; <br/>&gt; DBD::Oracle::st execute failed: called with 3 bind variables when 4 are needed [for Statement &quot;insert into employee_fte_annualrate_l (emplid, emptype_cd, fte, annual_rate) values(?,?,?,?)&quot; with ParamValues: :p1=&#39;22057713&#39;, :p2=&#39;R&#39;, :p3=&#39;1&#39;, :p4=&#39;47311&#39;] at /home/oraweb/perl/frs/kfsupdate.pl line 64, &lt;DATA&gt; line 581.<br/>&gt; <br/>&gt; I&#39;m pretty sure I count 4 placeholders and 4 parameter values in that error message, so where is the &#39;3 bind variables&#39; coming from?<br/>&gt; <br/>&gt; here&#39;s the cursor definition:<br/>&gt; <br/>&gt; my $csr_emp_info = $lda-&gt;prepare(&quot;insert into employee_fte_annualrate_l (emplid, emptype_cd, fte, annual_rate) values(?,?,?,?)&quot;);<br/>&gt; <br/>&gt; I&#39;m pulling the data from an LDAP query, here&#39;s the offending line 64 (where $mesg is the returned LDAP object):<br/>&gt; <br/>&gt; $csr_emp_info-&gt;execute($mesg-&gt;entry($n)-&gt;get_value(&#39;emplId&#39;), $mesg-&gt;entry($n)-&gt;get_value(&#39;employeeType&#39;),$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeFTE&#39;),$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeTotalAnnualRate&#39;));<br/>&gt; <br/>&gt; All the columns allow null entries, and these are all single-valued entries in the LDAP schema.<br/>&gt; <br/>&gt; <br/>&gt; --<br/>&gt; Bruce Johnson<br/>&gt; University of Arizona<br/>&gt; College of Pharmacy<br/>&gt; Information Technology Group<br/>&gt; <br/>&gt; Institutions do not have opinions, merely customs<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; -- <br/>&gt; Check out my LEGO blog at brickpile.com<br/>&gt; Follow/friend me: Facebook &bull; Flickr &bull; Twitter &bull; LinkedIn<br/><br/>-- <br/>Bruce Johnson<br/>University of Arizona<br/>College of Pharmacy<br/>Information Technology Group<br/><br/>Institutions do not have opinions, merely customs<br/><br/><br/></p> 2013-05-08T16:39:51Z Re: Huh? 4=3? by Bill Ward <p>From: Bill Ward My guess is that get_value() is returning an empty array rather than an<br/>undef scalar when the values are null. Try copying each one to a scalar<br/>variable and including the list of variables in the execute(). It&#39;d be more<br/>readable that way anyway. Or if you must put them all one one line like<br/>this, add the scalar() function on each argument.<br/><br/><br/>On Wed, May 8, 2013 at 9:18 AM, Bruce Johnson<br/>&lt;johnson@pharmacy.arizona.edu&gt;wrote:<br/><br/>&gt; Getting the error:<br/>&gt;<br/>&gt; DBD::Oracle::st execute failed: called with 3 bind variables when 4 are<br/>&gt; needed [for Statement &quot;insert into employee_fte_annualrate_l (emplid,<br/>&gt; emptype_cd, fte, annual_rate) values(?,?,?,?)&quot; with ParamValues:<br/>&gt; :p1=&#39;22057713&#39;, :p2=&#39;R&#39;, :p3=&#39;1&#39;, :p4=&#39;47311&#39;] at /home/oraweb/perl/frs/<br/>&gt; kfsupdate.pl line 64, &lt;DATA&gt; line 581.<br/>&gt;<br/>&gt; I&#39;m pretty sure I count 4 placeholders and 4 parameter values in that<br/>&gt; error message, so where is the &#39;3 bind variables&#39; coming from?<br/>&gt;<br/>&gt; here&#39;s the cursor definition:<br/>&gt;<br/>&gt; my $csr_emp_info = $lda-&gt;prepare(&quot;insert into employee_fte_annualrate_l<br/>&gt; (emplid, emptype_cd, fte, annual_rate) values(?,?,?,?)&quot;);<br/>&gt;<br/>&gt; I&#39;m pulling the data from an LDAP query, here&#39;s the offending line 64<br/>&gt; (where $mesg is the returned LDAP object):<br/>&gt;<br/>&gt; $csr_emp_info-&gt;execute($mesg-&gt;entry($n)-&gt;get_value(&#39;emplId&#39;),<br/>&gt; $mesg-&gt;entry($n)-&gt;get_value(&#39;employeeType&#39;),$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeFTE&#39;),$mesg-&gt;entry($n)-&gt;get_value(&#39;employeeTotalAnnualRate&#39;));<br/>&gt;<br/>&gt; All the columns allow null entries, and these are all single-valued<br/>&gt; entries in the LDAP schema.<br/>&gt;<br/>&gt;<br/>&gt; --<br/>&gt; Bruce Johnson<br/>&gt; University of Arizona<br/>&gt; College of Pharmacy<br/>&gt; Information Technology Group<br/>&gt;<br/>&gt; Institutions do not have opinions, merely customs<br/>&gt;<br/>&gt;<br/>&gt;<br/><br/><br/>-- <br/>Check out my LEGO blog at brickpile.com &lt;http://www.brickpile.com/&gt;<br/>Follow/friend me: Facebook &lt;http://facebook.com/billward&gt; &bull;<br/>Flickr&lt;http://flickr.com/photos/billward/&gt;&bull;<br/>Twitter &lt;http://twitter.com/williamward&gt; &bull;<br/>LinkedIn&lt;http://www.linkedin.com/pub/william-ward/63/393/985/&gt;<br/><br/></p> 2013-05-08T16:31:14Z Huh? 4=3? by Bruce Johnson

From: Bruce Johnson Getting the error:

DBD::Oracle::st execute failed: called with 3 bind variables when 4 are needed [for Statement "insert into employee_fte_annualrate_l (emplid, emptype_cd, fte, annual_rate) values(?,?,?,?)" with ParamValues: :p1='22057713', :p2='R', :p3='1', :p4='47311'] at /home/oraweb/perl/frs/kfsupdate.pl line 64, <DATA> line 581.

I'm pretty sure I count 4 placeholders and 4 parameter values in that error message, so where is the '3 bind variables' coming from?

here's the cursor definition:

my $csr_emp_info = $lda->prepare("insert into employee_fte_annualrate_l (emplid, emptype_cd, fte, annual_rate) values(?,?,?,?)");

I'm pulling the data from an LDAP query, here's the offending line 64 (where $mesg is the returned LDAP object):

$csr_emp_info->execute($mesg->entry($n)->get_value('emplId'), $mesg->entry($n)->get_value('employeeType'),$mesg->entry($n)->get_value('employeeFTE'),$mesg->entry($n)->get_value('employeeTotalAnnualRate'));

All the columns allow null entries, and these are all single-valued entries in the LDAP schema.


--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs


2013-05-08T16:18:31Z
Re: Relevance of ChildHandles by Jens Rehsack

From: Jens Rehsack On 08.05.13 00:05, Tim Bunce wrote:
[...]
> At this stage in the life of the DBI I think it's reasonable to assume
> that there isn't a leak in the DBI itself. If there was then a lot of
> people would be affected and complaining about it.

I think this assumption is heavily wrong. From my jobs I learned one
thing the last years: do it quick. To illustrate what I mean saying
that, see following exampple.

In a particular project we had the issue, that every monday morning
our web-interface was inoperable because of an invalid $dbh (which
was cached). The question from our manager was: can you say in 10
minutes why and how to fix and can you guarantee fix it until lunch?
Otherwise - implement a cron controlled web-server restart each
morning at 5.

Because of personal interests I debugged later into it (and fixed
it a few weeks later - "guaranteed") ...

What I'm trying to say - when administrators see there web-server
machines running out of memory, the implement a scheduled restart
in the pool of machines.

I really don't know business relying on web-services running
qualified monitoring with performance measurement (some do, but
don't know what they measure and finally one company really does).

Sorry for complaining ;)

Cheers
--
Jens Rehsack

2013-05-08T11:58:46Z
RE: DBI Module installtion by Anoop Kumar Paramesweran

From: Anoop Kumar Paramesweran Hi Support,

DBI has been successfully installed after the instaltion of XLC trail version..Now I am facing issue with DBD-oracle..

I was trying to install DBD module but I receve the errors

bash-3.2# perl Makefile.PL
Using DBI 1.625 (for perl 5.010001 on aix-thread-multi) installed in /usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi/auto/DBI/

Configuring DBD::Oracle for perl 5.010001 on aix (aix-thread-multi)

Remember to actually *READ* the README file! Especially if you have any problems.

Trying to find an ORACLE_HOME
Your LIBPATH env var is set to ''

The ORACLE_HOME environment variable is not set and I couldn't guess it.
It must be set to hold the path to an Oracle installation directory
on this machine (or a machine with a compatible architecture).
See the appropriate README file for your OS for more information.
ABORTED!
================================================

After this I set the path

export ORACLE_BASE=/u01/app/oracle/product
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export SHLIB_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/usr/bin:/etc:/usr/bin/x11:/usr/local/bin:/usr/vacpp/bin:$PATH
export ORACLE_SID=


Then I receive these errors
==================================================================
bash-3.2# perl Makefile.PL
Using DBI 1.625 (for perl 5.010001 on aix-thread-multi) installed in /usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi/auto/DBI/

Configuring DBD::Oracle for perl 5.010001 on aix (aix-thread-multi)

Remember to actually *READ* the README file! Especially if you have any problems.

Installing on a aix, Ver#5.3
Using Oracle in /u01/app/oracle/product/11.2.0/dbhome_1
DEFINE _SQLPLUS_RELEASE = "1102000300" (CHAR)
Oracle version 11.2.0.3 (11.2)
Found /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk
Using /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk
Your LIBPATH env var is set to ''
WARNING: Your LIBPATH env var doesn't include '/u01/app/oracle/product/11.2.0/dbhome_1/lib' but probably needs to.
Reading /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk
Reading /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/env_rdbms.mk
Deleting -b64 from COMPOBJS because -b64 doesn't exist.
WARNING: Oracle /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk doesn't define a 'build' rule.

WARNING: I will now try to guess how to build and link DBD::Oracle for you.
This kind of guess work is very error prone and Oracle-version sensitive.
It is possible that it won't be supported in future versions of DBD::Oracle.
*PLEASE* notify dbi-users about exactly _why_ you had to build it this way.

Found header files in /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/public.

client_version=11.2


DEFINE= -DUTF8_SUPPORT -DORA_OCI_VERSION=\"11.2.0.3\" -DORA_OCI_102 -DORA_OCI_112


Checking for functioning wait.ph


System: perl5.010001 aix dennis01 3 5 00c72e9a4c00
Compiler: xlc_r -q32 -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong
Linker: /usr/bin/ld
Sysliblist: /lib/crt0_64.o -ldl -lc -lm -lpthreads -lodm -lbsd_r -lld -lperfstat
Oracle makefiles would have used these definitions but we override them:
CC: $(ORACLE_HOME)/bin/oraxlc $(ORAXLCFLAGS)
CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\
$(SHARED_CFLAG) $(USRFLAGS)
[$(GFLAG) -O3 $(CDEBUG) -q64 -DSS_64BIT_SERVER -qwarn64 -qinfo=uni -DAIXRIOS -qflag=s:s -I/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/demo -I/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/public -I/u01/app/oracle/product/11.2.0/dbhome_1/plsql/public -I/u01/app/oracle/product/11.2.0/dbhome_1/network/public -DLDAP_CM $(LPFLAGS) $(PLSQLNCGFLAGS) $(USRFLAGS)]
LDFLAGS: -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME)
[-o $@ -L/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/ -L$(LIBHOME)]
Linking with /lib/crt0_64.o -lclntsh -brtl -lld -lm -ldl -lc -lm -lpthreads -lodm -lbsd_r -lld -lperfstat -lm -lpthreads [from $(OCISHAREDLIBS)]


WARNING: You will may need to rebuild perl using the xlc_r compiler.
The important thing is that perl and DBD::Oracle be built with the same compiler.
You may also need to: ORACCENV='cc=xlc_r'; export ORACCENV
Also see README.aix for gcc instructions and read about the -p option.
Checking if your kit is complete...
Looks good
Unrecognized argument in LIBS ignored: '-brtl'
LD_RUN_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/lib
Using DBD::Oracle 1.62.
Using DBD::Oracle 1.62.
Using DBI 1.625 (for perl 5.010001 on aix-thread-multi) installed in /usr/opt/perl5/lib/site_perl/5.10.1/aix-thread-multi/auto/DBI/
Writing Makefile for DBD::Oracle

*** If you have problems...
read all the log printed above, and the README and README.help.txt files.
(Of course, you have read README by now anyway, haven't you?)

bash-3.2#


Thanks for the replay ,I think we don't have xlc.. but in software listing its showing ..but I cannot find the binaries for it.

I have already gcc but it says most of the option are not available with gcc..

Anoop Kumar Paramesweran | Expert - Unix and Storage Systems
e anoop.kumar@nawras.om | m +96895103659 twitter/nawras_oman | facebook/nawras -----Original Message-----
From: Martin J. Evans [mailto:bohica@ntlworld.com]
Sent: Wednesday, May 01, 2013 11:07 PM
To: dbi-users@perl.org
Cc: Anoop Kumar Paramesweran
Subject: Re: DBI Module installtion

On 29/04/2013 14:55, Anoop Kumar Paramesweran wrote:
> Hi Support,
>
> I am receiving below error while installing (make ) DBI module in my
> AIX box. As I am new to Perl installations could you please help me to
> solve this..
>
> xlc_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
> -qlanglvl=extended -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong
> -O -DVERSION=\"1.625\" -DXS_VERSION=\"1.625\"
> "-I/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE" Perl.c
> /bin/sh: xlc_r: not found.
> make: 1254-004 The error code from the last command is 127.
>
>
> Stop.

The Perl you are using was compiled with the AIX C compiler and it is either a) not installed or b) it is not on your path.

You can either:

a) add the AIX compiler xlc_r to your path if you have it installed (you usually have to pay IBM for this compiler)

b) install the IBM compiler and add it to your PATH.

c) install another compiler such as gcc (which is free), build Perl yourself into some dir you can point your PATH at and then install DBI.
You might find perlbrew useful if you end up here.

Mostly when people report the issue you have they have installed Perl from a package provided by IBM that they built with their compiler and you don't have this compiler. When Perl is built is records the compiler and options used and generally you cannot compile Perl itself with one compiler and then modules which require a C compiler with another compiler.

Martin
--
Martin J. Evans
Wetherby, UK
This e-mail including any attachment is intended only for the recipient(s) named. It may contain confidential information and should not be read, copied or otherwise used by any other person. If you are not a named recipient, please contact the sender and delete the e-mail from your system. The sender does not accept any liability for errors or omissions in the content of this message or for viruses, or any damage due to the e-mail. The recipient is advised to have appropriate virus check software

2013-05-08T11:50:54Z
Re: Relevance of ChildHandles by Alberto Simões <p>From: Alberto Simões Hello<br/><br/><br/>On Tue, May 7, 2013 at 11:05 PM, Tim Bunce &lt;Tim.Bunce@pobox.com&gt; wrote:<br/><br/>&gt;<br/>&gt;<br/>&gt; The DBI purges undef entries from ChildHandles from time to time.<br/>&gt; (Specifically whenever the number of entries is a multiple of 120.)<br/>&gt;<br/><br/>Confirmed. Thanks<br/><br/>&gt;<br/>&gt; At this stage in the life of the DBI I think it&#39;s reasonable to assume<br/>&gt; that there isn&#39;t a leak in the DBI itself. If there was then a lot of<br/>&gt; people would be affected and complaining about it.<br/>&gt;<br/>&gt;<br/>Yeah, that is my though too, but I&#39;m trying to look to all possibilities.<br/>My server is crashing too often :-)<br/><br/>Thanks<br/><br/><br/><br/>-- <br/>Alberto Sim&otilde;es<br/><br/></p> 2013-05-08T09:44:57Z Re: Relevance of ChildHandles by Tim Bunce <p>From: Tim Bunce On Tue, May 07, 2013 at 10:28:29PM +0100, Alberto Sim&otilde;es wrote:<br/>&gt; Hello<br/>&gt; <br/>&gt; Any kind of handle on DBI has a $h-&gt;{ChildHandles} that store weakrefs to all child handles created. For<br/>&gt; instance, on a $dbh, you will get a list of weakrefs to $sth you create.<br/>&gt; <br/>&gt; When one of those $sth gets out of scope, its count get to 0. What Perl does to the weakref, is to<br/>&gt; change it to an undef value (Perl isn&#39;t able to remove that element from the array).<br/>&gt; <br/>&gt; Although a single undef takes less memory than a complete $sth object, it takes memory space. And if we<br/>&gt; get a lot of these undef values, things get worse.<br/><br/>The DBI purges undef entries from ChildHandles from time to time.<br/>(Specifically whenever the number of entries is a multiple of 120.)<br/><br/>At this stage in the life of the DBI I think it&#39;s reasonable to assume<br/>that there isn&#39;t a leak in the DBI itself. If there was then a lot of<br/>people would be affected and complaining about it.<br/><br/>Tim.<br/></p> 2013-05-07T22:06:12Z Relevance of ChildHandles by Alberto Simões <p>From: Alberto Simões Hello<br/><br/>Any kind of handle on DBI has a $h-&gt;{ChildHandles} that store weakrefs to<br/>all child handles created. For instance, on a $dbh, you will get a list of<br/>weakrefs to $sth you create.<br/><br/>When one of those $sth gets out of scope, its count get to 0. What Perl<br/>does to the weakref, is to change it to an undef value (Perl isn&#39;t able to<br/>remove that element from the array).<br/><br/>Although a single undef takes less memory than a complete $sth object, it<br/>takes memory space. And if we get a lot of these undef values, things get<br/>worse.<br/><br/>I noticed in the documentation that older Perl versions that doesn&#39;t<br/>support weaken does not implement ChildHandles. Probably that means this<br/>list is not *that* relevant.<br/><br/>My question is: how relevant is this list? relevant enough to waste this<br/>space?<br/><br/>If it is not relevant on all situations, couldn&#39;t it be possible to turn it<br/>off? Or then, turn it on if you want to use it?<br/><br/>Just some thoughts.<br/><br/>Thanks,<br/>Alberto<br/><br/>-- <br/>Alberto Sim&otilde;es<br/><br/></p> 2013-05-07T21:28:42Z Re: Help with Probable Leaks by Alberto Simões <p>From: Alberto Simões Hey again<br/><br/><br/>Tim answered to this problem yesterday but I didn&#39;t understand his answer<br/>till now. The database handler stores in ChildHandles a list of all created<br/>handles. This list is only emptied when $dbh looses scope.<br/><br/>The count didn&#39;t appear in my standalone test because it was<br/>ill-implemented. Fixed it and the leak is there as well.<br/><br/>Where, not a leak, but a problem I need to solve.<br/><br/>At the moment I might do:<br/> $dbh-&gt;{ChildHandles} = [];<br/><br/>I am afraid of what might happen doing this. But as the docs say on older<br/>Perl versions is attribute is undef, there should be no problems.<br/><br/>Ideas?<br/><br/>Alberto (aka ambs)<br/><br/><br/><br/>On Tue, May 7, 2013 at 4:11 PM, Alberto Sim&otilde;es &lt;hashashin@gmail.com&gt; wrote:<br/><br/>&gt; I just forgot to explain how to run the Dancer app. Probably easier to use<br/>&gt; this app: http://paste.perldancer.org/1nX0n7dg6abTJ<br/>&gt;<br/>&gt; Also, the test with only DBI and no Dancer here:<br/>&gt; http://paste.perldancer.org/uzagWiCYXUsj<br/>&gt; that doesn&#39;t &quot;leak&quot; anything.<br/>&gt;<br/>&gt; mje_ on IRC did some experiments and found out that when using<br/>&gt; prepare_cached the scalar count doesn&#39;t change.<br/>&gt;<br/>&gt; But then, strange enough to have prepare leaking inside dancer, and not<br/>&gt; outside. :-|<br/>&gt;<br/>&gt; Cheers<br/>&gt; Alberto (aka ambs)<br/>&gt;<br/>&gt;<br/>&gt;<br/>&gt; On Tue, May 7, 2013 at 1:36 PM, Alberto Sim&otilde;es &lt;hashashin@gmail.com&gt;wrote:<br/>&gt;<br/>&gt;&gt; Hello<br/>&gt;&gt;<br/>&gt;&gt; I am experiencing a behavior when using DBI inside Dancer that seems to<br/>&gt;&gt; result on SCALAR leaks, but only when running inside Dancer.<br/>&gt;&gt;<br/>&gt;&gt; To help diagnosing I did a couple of tests that I try to explain below.<br/>&gt;&gt;<br/>&gt;&gt; First, I developed a sample small application in Dancer. It is available<br/>&gt;&gt; (temporarily) in http://paste.perldancer.org/2yIABT6Yreh5T. Basically,<br/>&gt;&gt; it has two routes. One that calls Devel::Gladiator and dumps the count for<br/>&gt;&gt; each type of variables currently available, and another route that returns<br/>&gt;&gt; OK. This route has a prepare statement (line 27) that is my problem.<br/>&gt;&gt;<br/>&gt;&gt; If I comment that line, and test calling the main route different times<br/>&gt;&gt; (calling the arena between calls) I get the result in<br/>&gt;&gt; http://paste.perldancer.org/sWhBrp2rh1lq. Basically, first 5 hits are<br/>&gt;&gt; discarded, just to make sure all variables and caches prepared by Dancer<br/>&gt;&gt; are filled in, and then I call the main route 100 times. You might notice<br/>&gt;&gt; the amount of scalars rarely changes, and at the end, the summary is<br/>&gt;&gt; negative (less two scalars than the amount we had when beginning the test).<br/>&gt;&gt;<br/>&gt;&gt; If I uncomment, then I get http://paste.perldancer.org/1mjhfOfwxEJxf,<br/>&gt;&gt; where you might notice almost each call increments a SCALAR into memory. At<br/>&gt;&gt; the end, the summary is 97 wasted scalars (almost the same number of hits).<br/>&gt;&gt;<br/>&gt;&gt; Although I imagine DBI does some kind of cache, it is weird it stores 97<br/>&gt;&gt; copies for the same query. Nevertheless, I tried a similar approach without<br/>&gt;&gt; Dancer, and NO SCALAR gets lost at all.<br/>&gt;&gt;<br/>&gt;&gt; Also, tried to do, in the same route, two prepares, and the number of<br/>&gt;&gt; lost scalars doubles. If I do only one prepare but two execute/fetch, I get<br/>&gt;&gt; only one scalar lost.<br/>&gt;&gt;<br/>&gt;&gt; So, this is something about Dancer and DBI together. But I have no idea<br/>&gt;&gt; of what might be going on.<br/>&gt;&gt;<br/>&gt;&gt;<br/>&gt;&gt; If you need some more details, or that I run some test, please poke me at<br/>&gt;&gt; #dbi on irc.perl.org (ambs).<br/>&gt;&gt;<br/>&gt;&gt; Thanks,<br/>&gt;&gt; Alberto (aka ambs)<br/>&gt;&gt;<br/>&gt;&gt; --<br/>&gt;&gt; Alberto Sim&otilde;es<br/>&gt;&gt;<br/>&gt;<br/>&gt;<br/>&gt;<br/>&gt; --<br/>&gt; Alberto Sim&otilde;es<br/>&gt;<br/><br/><br/><br/>-- <br/>Alberto Sim&otilde;es<br/><br/></p> 2013-05-07T17:33:16Z Re: Help with Probable Leaks by Alberto Simões <p>From: Alberto Simões I just forgot to explain how to run the Dancer app. Probably easier to use<br/>this app: http://paste.perldancer.org/1nX0n7dg6abTJ<br/><br/>Also, the test with only DBI and no Dancer here:<br/>http://paste.perldancer.org/uzagWiCYXUsj<br/>that doesn&#39;t &quot;leak&quot; anything.<br/><br/>mje_ on IRC did some experiments and found out that when using<br/>prepare_cached the scalar count doesn&#39;t change.<br/><br/>But then, strange enough to have prepare leaking inside dancer, and not<br/>outside. :-|<br/><br/>Cheers<br/>Alberto (aka ambs)<br/><br/><br/><br/>On Tue, May 7, 2013 at 1:36 PM, Alberto Sim&otilde;es &lt;hashashin@gmail.com&gt; wrote:<br/><br/>&gt; Hello<br/>&gt;<br/>&gt; I am experiencing a behavior when using DBI inside Dancer that seems to<br/>&gt; result on SCALAR leaks, but only when running inside Dancer.<br/>&gt;<br/>&gt; To help diagnosing I did a couple of tests that I try to explain below.<br/>&gt;<br/>&gt; First, I developed a sample small application in Dancer. It is available<br/>&gt; (temporarily) in http://paste.perldancer.org/2yIABT6Yreh5T. Basically, it<br/>&gt; has two routes. One that calls Devel::Gladiator and dumps the count for<br/>&gt; each type of variables currently available, and another route that returns<br/>&gt; OK. This route has a prepare statement (line 27) that is my problem.<br/>&gt;<br/>&gt; If I comment that line, and test calling the main route different times<br/>&gt; (calling the arena between calls) I get the result in<br/>&gt; http://paste.perldancer.org/sWhBrp2rh1lq. Basically, first 5 hits are<br/>&gt; discarded, just to make sure all variables and caches prepared by Dancer<br/>&gt; are filled in, and then I call the main route 100 times. You might notice<br/>&gt; the amount of scalars rarely changes, and at the end, the summary is<br/>&gt; negative (less two scalars than the amount we had when beginning the test).<br/>&gt;<br/>&gt; If I uncomment, then I get http://paste.perldancer.org/1mjhfOfwxEJxf,<br/>&gt; where you might notice almost each call increments a SCALAR into memory. At<br/>&gt; the end, the summary is 97 wasted scalars (almost the same number of hits).<br/>&gt;<br/>&gt; Although I imagine DBI does some kind of cache, it is weird it stores 97<br/>&gt; copies for the same query. Nevertheless, I tried a similar approach without<br/>&gt; Dancer, and NO SCALAR gets lost at all.<br/>&gt;<br/>&gt; Also, tried to do, in the same route, two prepares, and the number of lost<br/>&gt; scalars doubles. If I do only one prepare but two execute/fetch, I get only<br/>&gt; one scalar lost.<br/>&gt;<br/>&gt; So, this is something about Dancer and DBI together. But I have no idea of<br/>&gt; what might be going on.<br/>&gt;<br/>&gt;<br/>&gt; If you need some more details, or that I run some test, please poke me at<br/>&gt; #dbi on irc.perl.org (ambs).<br/>&gt;<br/>&gt; Thanks,<br/>&gt; Alberto (aka ambs)<br/>&gt;<br/>&gt; --<br/>&gt; Alberto Sim&otilde;es<br/>&gt;<br/><br/><br/><br/>-- <br/>Alberto Sim&otilde;es<br/><br/></p> 2013-05-07T15:12:07Z Help with Probable Leaks by Alberto Simões <p>From: Alberto Simões Hello<br/><br/>I am experiencing a behavior when using DBI inside Dancer that seems to<br/>result on SCALAR leaks, but only when running inside Dancer.<br/><br/>To help diagnosing I did a couple of tests that I try to explain below.<br/><br/>First, I developed a sample small application in Dancer. It is available<br/>(temporarily) in http://paste.perldancer.org/2yIABT6Yreh5T. Basically, it<br/>has two routes. One that calls Devel::Gladiator and dumps the count for<br/>each type of variables currently available, and another route that returns<br/>OK. This route has a prepare statement (line 27) that is my problem.<br/><br/>If I comment that line, and test calling the main route different times<br/>(calling the arena between calls) I get the result in<br/>http://paste.perldancer.org/sWhBrp2rh1lq. Basically, first 5 hits are<br/>discarded, just to make sure all variables and caches prepared by Dancer<br/>are filled in, and then I call the main route 100 times. You might notice<br/>the amount of scalars rarely changes, and at the end, the summary is<br/>negative (less two scalars than the amount we had when beginning the test).<br/><br/>If I uncomment, then I get http://paste.perldancer.org/1mjhfOfwxEJxf, where<br/>you might notice almost each call increments a SCALAR into memory. At the<br/>end, the summary is 97 wasted scalars (almost the same number of hits).<br/><br/>Although I imagine DBI does some kind of cache, it is weird it stores 97<br/>copies for the same query. Nevertheless, I tried a similar approach without<br/>Dancer, and NO SCALAR gets lost at all.<br/><br/>Also, tried to do, in the same route, two prepares, and the number of lost<br/>scalars doubles. If I do only one prepare but two execute/fetch, I get only<br/>one scalar lost.<br/><br/>So, this is something about Dancer and DBI together. But I have no idea of<br/>what might be going on.<br/><br/><br/>If you need some more details, or that I run some test, please poke me at<br/>#dbi on irc.perl.org (ambs).<br/><br/>Thanks,<br/>Alberto (aka ambs)<br/><br/>-- <br/>Alberto Sim&otilde;es<br/><br/></p> 2013-05-07T12:36:57Z Re: Oracle Freakishness by David E. Wheeler <p>From: David E. Wheeler On May 5, 2013, at 7:34 AM, Garry T. Williams &lt;gtwilliams@gmail.com&gt; wrote:<br/><br/>&gt; http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions031.htm#SQLRF06304 <br/>&gt; <br/>&gt; &quot;COLLECT is an aggregate function that takes as its argument a<br/>&gt; column of any type and creates a nested table of the input type<br/>&gt; out of the rows selected. To get accurate results from this<br/>&gt; function you must use it within a CAST function.&quot;<br/>&gt; <br/>&gt; Do you have to define a type and cast COLLECT() to that type?<br/><br/>No, I get the same error if I cast it to a varray. What&rsquo;s bizarre is that Oracle says that the error is on the join to tags, not the collect. Here&rsquo;s another example (with the cast):<br/><br/> ORA-00942: table or view does not exist (DBD ERROR: error possibly near &lt;*&gt; indicator at char 419 in &#39;<br/> SELECT c.change_id AS id, c.change AS name, c.project, c.note,<br/> to_char(c.planned_at AT TIME ZONE &#39;UTC&#39;, &#39;&quot;year&quot;:YYYY:&quot;month&quot;:MM:&quot;day&quot;:DD&#39;) || to_char(c.planned_at AT TIME ZONE &#39;UTC&#39;, &#39;:&quot;hour&quot;:HH24:&quot;minute&quot;:MI:&quot;second&quot;:SS:&quot;time_zone&quot;:&quot;UTC&quot;&#39;) AS timestamp, c.planner_name, c.planner_email,<br/> cast(COLLECT(t.tag) AS sqitch_array) AS tags<br/> FROM changes c<br/> LEFT JOIN &lt;*&gt;tags t ON c.change_id = t.change_id<br/> WHERE c.project = :p1<br/> GROUP BY c.change_id, c.change, c.project, c.note, c.planned_at,<br/> c.planner_name, c.planner_email, c.committed_at<br/> ORDER BY c.committed_at ASC<br/> &#39;)<br/><br/>The problem is not solved if I change the name of the collected column from &quot;tags&quot; to something else. However, the problem goes away if I quote the project directly and include it in the statement, rather than use a placeholder. I find this bizarre, though there is no doubt a very good explanation for it.<br/><br/>Thanks,<br/><br/>David</p> 2013-05-06T00:03:05Z Re: Oracle Freakishness by Garry T. Williams

From: Garry T. Williams On 5-2-13 15:20:23 David E. Wheeler wrote:
> This query:
>
> $dbh->selectrow_hashref(q{
> SELECT c.change_id
> , COLLECT(t.tag) AS tags
> FROM changes c
> LEFT JOIN tags t ON c.change_id = t.change_id
> WHERE c.project = ?
> GROUP BY c.change_id
> }, undef, 'engine');
>
> Generates this (useless) exception:
>
> ORA-00932: inconsistent datatypes: expected - got - (DBD ERROR:
> error possibly near <*> indicator at char 51 in '

Perhaps this is due to

http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions031.htm#SQLRF06304

"COLLECT is an aggregate function that takes as its argument a
column of any type and creates a nested table of the input type
out of the rows selected. To get accurate results from this
function you must use it within a CAST function."

Do you have to define a type and cast COLLECT() to that type?

--
Garry T. Williams

2013-05-05T14:34:21Z
RE: DBI Module installtion by Anoop Kumar Paramesweran

From: Anoop Kumar Paramesweran Thanks for the replay ,I think we don't have xlc.. but in software listing its showing ..but I cannot find the binaries for it.

I have already gcc but it says most of the option are not available with gcc..

Anoop Kumar Paramesweran | Expert - Unix and Storage Systems
e anoop.kumar@nawras.om | m +96895103659
twitter/nawras_oman | facebook/nawras
-----Original Message-----
From: Martin J. Evans [mailto:bohica@ntlworld.com]
Sent: Wednesday, May 01, 2013 11:07 PM
To: dbi-users@perl.org
Cc: Anoop Kumar Paramesweran
Subject: Re: DBI Module installtion

On 29/04/2013 14:55, Anoop Kumar Paramesweran wrote:
> Hi Support,
>
> I am receiving below error while installing (make ) DBI module in my
> AIX box. As I am new to Perl installations could you please help me to
> solve this..
>
> xlc_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
> -qlanglvl=extended -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong
> -O -DVERSION=\"1.625\" -DXS_VERSION=\"1.625\"
> "-I/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE" Perl.c
> /bin/sh: xlc_r: not found.
> make: 1254-004 The error code from the last command is 127.
>
>
> Stop.

The Perl you are using was compiled with the AIX C compiler and it is either a) not installed or b) it is not on your path.

You can either:

a) add the AIX compiler xlc_r to your path if you have it installed (you usually have to pay IBM for this compiler)

b) install the IBM compiler and add it to your PATH.

c) install another compiler such as gcc (which is free), build Perl yourself into some dir you can point your PATH at and then install DBI.
You might find perlbrew useful if you end up here.

Mostly when people report the issue you have they have installed Perl from a package provided by IBM that they built with their compiler and you don't have this compiler. When Perl is built is records the compiler and options used and generally you cannot compile Perl itself with one compiler and then modules which require a C compiler with another compiler.

Martin
--
Martin J. Evans
Wetherby, UK
This e-mail including any attachment is intended only for the recipient(s) named. It may contain confidential information and should not be read, copied or otherwise used by any other person. If you are not a named recipient, please contact the sender and delete the e-mail from your system. The sender does not accept any liability for errors or omissions in the content of this message or for viruses, or any damage due to the e-mail. The recipient is advised to have appropriate virus check software

2013-05-05T11:31:20Z
Oracle Freakishness by David E. Wheeler

From: David E. Wheeler Fellow DBIers,

This query:

$dbh->selectrow_hashref(q{
SELECT c.change_id
, COLLECT(t.tag) AS tags
FROM changes c
LEFT JOIN tags t ON c.change_id = t.change_id
WHERE c.project = ?
GROUP BY c.change_id
}, undef, 'engine');

Generates this (useless) exception:

ORA-00932: inconsistent datatypes: expected - got - (DBD ERROR: error possibly near <*> indicator at char 51 in '
SELECT c.change_id
, <*>COLLECT(t.tag) AS tags
FROM changes c
LEFT JOIN tags t ON c.change_id = t.change_id
WHERE c.project = :p1
GROUP BY c.change_id
')

However, I can make the error go away by removing the use of placeholders. This version does not throw an error:

$dbh->selectrow_hashref(q{
SELECT c.change_id
, COLLECT(t.tag) AS tags
FROM changes c
LEFT JOIN tags t ON c.change_id = t.change_id
WHERE c.project = 'engine'
GROUP BY c.change_id
});

I can also eliminate the error by removing the COLLECT() line, but I really want an array there. Curiously, the error also goes away if I first execute without a placeholder and then with. IOW, this does not error out, either:

$dbh->selectrow_hashref(q{
SELECT c.change_id
, COLLECT(t.tag) AS tags
FROM changes c
LEFT JOIN tags t ON c.change_id = t.change_id
WHERE c.project = 'engine'
GROUP BY c.change_id
});
$dbh->selectrow_hashref(q{
SELECT c.change_id
, COLLECT(t.tag) AS tags
FROM changes c
LEFT JOIN tags t ON c.change_id = t.change_id
WHERE c.project = ?
GROUP BY c.change_id
}, undef, 'engine');

WTF Oracle?

Thanks,

David

2013-05-03T06:26:08Z
Re: DBI Module installtion by John R Pierce

From: John R Pierce On 4/29/2013 6:55 AM, Anoop Kumar Paramesweran wrote:
>
> Hi Support,
>
> I am receiving below error while installing (make ) DBI module in my
> AIX box. As I am new to Perl installations could you please help me to
> solve this..
>
> xlc_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
> -qlanglvl=extended -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong
> -O -DVERSION=\"1.625\" -DXS_VERSION=\"1.625\"
> "-I/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE" Perl.c
> /bin/sh: xlc_r: not found.
> make: 1254-004 The error code from the last command is 127.
>

you don't have the IBM XLC compiler in your path. this is a commercial
product ($$) and if you have it installed, its default path is generally
/usr/vac/bin or /usr/vacpp/bin



--
john r pierce 37N 122W
somewhere on the middle of the left coast


2013-05-01T20:58:13Z
Re: DBI Module installtion by Martin J. Evans

From: Martin J. Evans On 29/04/2013 14:55, Anoop Kumar Paramesweran wrote:
> Hi Support,
>
> I am receiving below error while installing (make ) DBI module in my AIX
> box. As I am new to Perl installations could you please help me to solve
> this..
>
> xlc_r -q32 -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1
> -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended
> -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O
> -DVERSION=\"1.625\" -DXS_VERSION=\"1.625\"
> "-I/usr/opt/perl5/lib/5.10.1/aix-thread-multi/CORE" Perl.c
> /bin/sh: xlc_r: not found.
> make: 1254-004 The error code from the last command is 127.
>
>
> Stop.

The Perl you are using was compiled with the AIX C compiler and it is
either a) not installed or b) it is not on your path.

You can either:

a) add the AIX compiler xlc_r to your path if you have it installed (you
usually have to pay IBM for this compiler)

b) install the IBM compiler and add it to your PATH.

c) install another compiler such as gcc (which is free), build Perl
yourself into some dir you can point your PATH at and then install DBI.
You might find perlbrew useful if you end up here.

Mostly when people report the issue you have they have installed Perl
from a package provided by IBM that they built with their compiler and
you don't have this compiler. When Perl is built is records the compiler
and options used and generally you cannot compile Perl itself with one
compiler and then modules which require a C compiler with another compiler.

Martin
--
Martin J. Evans
Wetherby, UK

2013-05-01T19:07:09Z
DBI Module installtion by Anoop Kumar Paramesweran <p>From: Anoop Kumar Paramesweran GIF89a&#155;&#0;&iexcl;&#0;&#134;&#127;&#0;-&para;&shy;lx&para;&Igrave;&ecirc;&iacute;&ordm;&Acirc;&szlig;&#143;&Ecirc;&euml;e&raquo;R2&acute;&eacute;q&Euml;&AElig;&icirc;&icirc;&#144;e&#145;&Euml;&#157;&ordf;&Ograve;p&Acirc;^&#22;&macr;&yen;&Ocirc;&aacute;hS&Aacute;&ordm;B&frac14;&acute;l&cedil;&atilde;&#146;&#157;&Euml;I&brvbar;&Uacute;&Egrave;&Iuml;&aring;&acute;&times;&#134;0&#146;&ETH;&Egrave;&Uacute;R&#3;&#133;&Euml;&igrave;&iuml;&reg;^&#133;&Auml;&#23;&#153;&times;X&sect;0&Uacute;&euml;&Icirc;&Ouml;&Ucirc;&igrave;&ocirc;&otilde;&Ecirc;&#150;&Ograve;&#139;PX&yen;Zm&sup2;&frac34;&Otilde;D7&nbsp;&Oslash;Xd&not;\y&raquo;u&#133;&frac12;&cedil;&Ograve;8&ordm;&atilde;&atilde;&shy;&micro;&Oslash;Y&sup1;K&atilde;&ccedil;&ograve;&nbsp;&Ograve;&iacute;&#133;&#147;&Aring;1J&#157;&micro;&ordm;&Ucirc;&copy;&Ograve;{&#6;&ordf;&#159;&shy;&Ucirc;&cent;&#129;&Aring;f&Eacute;&auml;&middot;&ntilde;&oacute;&ugrave;&#153;&Uacute;&Ugrave;&acirc;&eth;&oslash;&Igrave;&Ugrave;d&#133;&Euml;x&Icirc;&Ocirc;&egrave;&sup1;&Egrave;&aring;-&yen;&#151;&Eacute;&Uuml;&#138;&sect;&not;&Ograve;&#22;&#141;z&gt;V&curren;&szlig;&ccedil;&#142;u&uml;&times;&micro;&Uuml;&ntilde;&#4;|f|&cedil;F&laquo;&times;&eth;&ograve;&oslash;&ucirc;&Atilde;&AElig;&agrave;&#152;&Ecirc;{&#22;x&Atilde;&#139;&Otilde;&Ograve;&#130;&Euml;&Auml;&#28;&#133;&Igrave;Na&ordf;&Agrave;&Ograve;&ecirc;-j&micro;&aacute;&ntilde;&eacute;&THORN;&aelig;w&#127;&ETH;&Iacute;&#3;P&ordf;d&frac12;&sup2;&#154;&Aring;Z\&macr;&THORN;&#136;&#140;&Aacute;Ku&cedil;&#158;&pound;&Icirc;&#128;&#133;&frac12;&oslash;&uuml;&yacute;&#148;&middot;&Yacute;&#16;l&frac14;&#17;2&#131;&raquo;&szlig;&reg;&#153;&Oacute;&Ecirc;&uuml;&yacute;&otilde;}&iquest;&aring;<br/>&#139;&Icirc;E&deg;&cent;&#143;&Ecirc;l&ocirc;&divide;&THORN;&#21;&#141;&Icirc;y&frac14;\&#15;&#145;&Oacute;&Acirc;&Yacute;&cent;&brvbar;&Atilde;&acirc;&ograve;&oslash;&ograve;&#39;&#153;&#136;`&AElig;&Agrave;&#21;&#156;&#141;&copy;&agrave;&agrave;&#158;&Icirc;r&#147;&Icirc;&Aring;&ecirc;&icirc;&ouml;&#143;&Eacute;&Agrave;&quot;&curren;&szlig;J&#127;&Aacute;HX&#158;&Atilde;&acirc;&ocirc;&#31;F&#148;%&#156;&Uuml;]&shy;&#159;&#31;&#146;&Ntilde;#&gt;&#152;&yuml;&yuml;&yuml;!&yuml;&#11;NETSCAPE2.0&#3;&#1;&#1;&#0;&#0;!&ugrave;&#4;&#1;&#0;&#0;&#127;&#0;,&#0;&#0;&#0;&#0;&#155;&#0;&iexcl;&#0;&#0;&#8;&yuml;&#0;&yuml;&#8;&#28;H&deg;&nbsp;&Aacute;&#131;&#8;&#19;*\&Egrave;&deg;&iexcl;&Atilde;&#131;5&cedil;&lt;&#156;H&plusmn;&cent;&Aring;&#139;&#24;3&#18;\&ntilde;&curren;&#131;&AElig;&#143; C&#138;&#12;&Eacute;E&Ccedil;&#147;&#39;&#18;G&ordf;\&Eacute;&#146;%&Ccedil;&#39;;&egrave;&acute;&#156;I&sup3;&aelig;D&#147;;vx&acute;&Eacute;&sup3;&#39;O:9w&#12;&Oslash;&eacute;&sup3;&uml;Q&#145;0&#7;&deg;y1&aacute;&uml;&Oacute;&sect;&#22;W&#8;&Yacute;&ntilde;&quot;&Aring;&#14;&uml;X&sup3;&amp;&auml;&quot;T&#135;T&#31;&#3;&acute;&#138;&#29;&laquo;&atilde;&Aring;&#142;&#21;+&amp;(x1&para;-T:U;&Egrave;&#157;&nbsp;%&#133;&Ucirc;&raquo;E&sup1;T&#157; W&#7;&#146;&#8;v&ntilde;<br/>&reg;&sup1;#&Aring;&ETH;&#14;:&amp; i&#129;d&deg;c&#150;&#29;|&curren;&ETH;AY&ntilde;&#11;,a&#31;k&#6;IG&#129;&#130; &#137;&#145; &#25;&eth;&Acirc;D&Oacute;&Iacute;&uml;/rI&iexcl;&#0;I&egrave;&Ntilde;/&#20;&#4; &#154;&ordm;&para;C&Ouml;LE&#147;&reg;&#26;!&#128;&iacute;&szlig; wD&Egrave; &Ucirc;&#135;&ntilde;-&amp;&#128;+G8&#1;&deg;b&Ograve;)&quot;&acute;&#136;&nbsp;%@&#132;&aring;&Oslash;&#7;v&#136;&ETH;&#26;vt,X&brvbar;&#147;&yuml;`&#155;}y&#135;&#22;&shy;w&#127;G&#142;e&#11;&#8;&#153;&aring;&#129;&euml;@?&#0;z&ocirc;-[&#2;&#4;&Egrave;O&quot;&frac34;&uuml;&#22;Z&uml;&ccedil;C&#4;&oslash;&eacute;G&#130;{&times;&ugrave;W&Ucirc;|&Atilde;U&#149;&#130;&#15;-&auml;&#23;@&#8;$&#144;&#16;&#128;&#11;&acute;)&oslash;&#152;&#14;&amp;4&oslash;&nbsp;&#15;&iacute;&#25;H&#2;&#8;&#21;&#134;&nbsp;!j&#28;&reg;&#149;&Acirc;&#131;Z`&iexcl;&#31;&#133;#&#130;&#16;&#2;&#8;&auml;&#157;&egrave;&Oslash;&#4;&amp;hQ&#149;q-&frac34;&#24;#&#8; &#4;&agrave;&#132;&#141;&#143;&aacute;X&#23;&#139;Z&auml;&#7;#&#144;@R&uml;&#0;&#145;&#131;&aacute;(&#25;&#143;IN&oslash;#&#8;NX&egrave;D P&acirc;&aring;&#131; <br/> I&agrave;&#146;Lf&#25;B&#8;&#129;u&Ugrave;&#150;&#2;9&ograve;&#24;&Aacute;&#152;WfIB&#8;&#1;&#148;&#128;&#16;&#23;)&copy;Y&#20;&#155;&AElig;)&nbsp;&Aring;&#155;&#1;T&Egrave;$&#150;s&#134;PB&#8;&#25;&thorn;&Aacute;&#133;&#0;F&#24;q&#132;&#158;&gt;&plusmn;&copy;&#128;&#15;Z&uuml;&eacute;b&#156;f&#150;&nbsp;&eacute;&#147;&#5;&#29;&Ntilde;(&#11;,&#8;&#0;&copy;MG&acute;&#144;c&yen;obA&aacute;&nbsp;f&#26;&ordf;i&#2;&#143;&#18;&yuml;t&#3;&uml;,&#16;@@&#30;&pound;&Ograve;t&#132; &sect;&thorn;&#25;!&brvbar;sj&#154;&#129;&brvbar;+&#20;&#148;G&shy;&para;&Uacute;&#138;k&reg;,&iacute;zj&ordf;&icirc;&plusmn;Z&uml;&deg;&#25;dq&Otilde;@\&#12;a&euml;&#16;&Uacute;&#142;1&AElig; &Igrave;&reg;D&#7;&macr;&#127;J&ccedil;&quot;&laquo;&shy;R[B&#23;&#4;qQ+&#11;y&Auml;k&#4;&#4;&#16;&auml;&#25;.H+&#132;&ETH;&iexcl;&sup1;&ordf;J{&amp;&micro; &Uuml;&Aacute;&icirc;@7&Oslash;jD&frac14;y&#12;1&iuml;&#24;&divide;&#138;&#148;&iuml;&frac34;-&acute;&divide;&pound;&#19;&eacute;&#150;&#144;A&#2;&#1;&#15;,&#144;&#0;&Ucirc;&AElig;&Euml;&iacute;&#16;,\&Aacute;B&Atilde; &eacute;&#16;&#2;&#22;&#17;&#128;&#135;&#156;&iquest;&reg;fpq&AElig;&#4; 1&#6;&#1;&#31;s&Ucirc;(&#1;&#18;,K2F&#3;8&plusmn;E&Auml;!&#150;Y&ntilde;&Euml;0&#11;&Auml;&#5;&#1;&#16;&deg;&eth;q&pound;F&#128;:&#134;&#4;&plusmn;&icirc;lQ&Iuml;[&uml;&frac14;&Aring;&#140;@&#14;Mt&#6;&#26;&szlig;&agrave;&shy;&#17;<br/>&#127;Jk&Egrave;&#12;KmQ<br/>NX&#29;h&Ouml;Zc&#156;@&#6;O&#12;4&#4;&#4;c0M+&#1;W@`&laquo;&#4;F&#152;&yuml;]Q&#11;&gt;&atilde;gB&#0;eNk1&Ntilde;&#24;&#23;&ucirc;&#135;&times;z7}7&#4;&#18;D&icirc;m&#5;Q&ucirc;&Yacute;P&#11;&#7;&#22;H8&#150;mc,p&not;F\1&AElig;&Oslash;NG.&Aacute;&#8;#&#140;&#145;&middot;&aring;&#14;&Otilde; &curren;&aelig;1v&thorn;v&#2;; &#0;&Aacute;&#21;&#4;&Uuml;m+&#4;&uml;&pound;&frac34;G&#5;cT&#0;.&euml;&#11;&Otilde;@!&macr;&#6;rn&cedil;&Euml;&#24;&raquo;&Igrave;&#134;@5&agrave;&lt;s&sup2;&para;&gt;&#141;z&#5;&#21;&ocirc;&Ntilde;&Ccedil;&#8;WH@|&ntilde;&Ccedil;&iquest;&#152;&otilde;&ograve;/g&eth;&ugrave;&#31;G&deg; &#1;&icirc;&Ocirc;&Ucirc;z&Aring;&#8;&#21;&igrave;&iexcl;}&#31;h&nbsp;qE&#5;:&#127;oP&#7;@X&#152;&lt;&Aring;&auml;&oacute;\&#2;&agrave;3&#132;&icirc;M&#143;&#0;3&#27;&#3;&iuml;&sup2;&sect;&frac12;&uacute;&#145;&aacute;&#2;h8&#157;&thorn;&#16;&Acirc;?:&yacute;/&#128;&#1;&pound;&Yacute;&AElig;xG7oy&eth;i&oacute;s&agrave;&#3;/p&#129;&#17;4ax&#19;$&Egrave;&#0;&#128;`&Aacute;&#25;&#1;&eth;_&#22;{&Ucirc;&#29;2p&shy;&#27;&#8;&iexcl;&#2;&cent;&ucirc;&nbsp;&middot;&reg;&ETH;@4&#144;a&#132;$&frac14;&Agrave;&ouml;&yuml;&Ecirc;&#150;&Acirc;&#129;&curren;&Agrave;&#5;&#22;Z&#149;&Ouml;&Igrave;g-&#129;x&shy;&#2;&#18;&eth; &frac12;&egrave;u&#133;=&#136;0&#136;X$&Atilde;&eacute;*&#151;&Acirc;#&#158;I&#137;&auml;&Euml;B&#22;&ordm;&eth;(&#27;V`&#4;SL&atilde;&yacute;|&#8;&Auml;,&thorn;P&#2;}&#16;U&#17;&#5;b&#2;$&#158;&#137;&#4;Z&#19;#&#25;&Ntilde;&times;&#133;&amp;p/&#141;&ocirc;&#130;&atilde;&#15;&plusmn;&egrave;F5&uml;&#1;u#&#155;&atilde;&#31;&ecirc;8&#39;&lt;&#14;-&#11;PP&#0;&#151;&#142;&ETH;&#5;&igrave;&aring;&iacute;vW&Egrave;&curren; &#25;&Auml;&#31;&#146;&Aacute;&#144;&#26;&Oslash;&#3;&#26;&#21;Y&#3;&#18;&Oslash;&plusmn;B&Euml;&#131;d&#11;dB&Eacute;&amp;@1&#147;&deg;&igrave;^&#31;8IBO&#130;R&#3;&#26;&deg;&#131;&#4; @J&lt;&agrave;&#1;&#149;&#21;&Euml;&#2;&#16;ZP&not;&#27;&ocirc;&ntilde;&#149;&plusmn;|_&#27;;&ugrave;&Atilde;[&acirc;&Ograve;&#14;v&ETH;&#0;&#17;S&Oslash;&#1;_&cent;&Ograve;p&Acirc;$&aelig;&acirc;&#132;&nbsp;&#4;(&#154;&Icirc;t&sup3;&auml;&curren;-&Otilde;&#128;&Euml;gB&Oacute;&#14;{&#152;&aelig;&#4;;&agrave;&#135;_&acirc;&plusmn;PYp&#130;&#11;&acute;iC/x&oacute;&#155;#@&#131;8&#155;I&yuml;&Icirc;r&#158;&Oacute;&#14;&#6;@&#39;&#1;&#20;&#137;&#4;&#23;&#144;&uml;U!&#0;&#130;&#11;&#18;P&not;&#39;&#8;&Aacute;&#11;~4&#29;&ecirc;&uacute;&deg;&Igrave;q&ouml;3&#151;&ccedil;4&#128;F&iacute;0&#130;&uuml;M&ETH;&#7;~&Egrave;R&laquo;&#128;&nbsp;&#7;&#19;4&ocirc;&#14;&ouml;&igrave;&Yacute;D+&Ecirc;&Iuml;&#139;&thorn;S&pound;0&micro;&#3;&#4;P&#152;B&#144;&cent;&ograve;L.()&cedil;&Oslash;&#128;&Ograve;3&ouml;&#142;~&#132;&acute;h9&divide;&eth;R&#152;&Acirc;t&#8;&#138;&uuml;C&#0;&frac34;&agrave;&#132;/&#146;&Ocirc;&curren;5`&#3;&#20;&#148;&ETH;&#135;=X&#149;&cent;Am&eacute;P&#139;jT&#3;&#140;&#128;&#0;\&#156;&agrave;RC*&Iuml;&#146;&cent;&aring;&iexcl;T&micro;&ordf;&#15;&sup3;&uacute;Ig&#18;5&pound;]&Otilde;&egrave;W&Atilde;&Uacute;.&lt;&#153;M&#7;_&Egrave;k^M&Ecirc;&#134;&#12;@&acute;&#15;&#26;&ETH;&#39;[ &eacute;R&reg;vU&brvbar;};&#8;&#23;n&Agrave;X&#1;8&ouml;&#6;t&Iacute;&#21;&#18;&ograve;&ordf;&#135;&#8;&not;@&#8;P&eth;&#2;&#26;&#12;&sup1;&Iuml;&para;&#22;&#22;&reg;q&Yacute;&#3;&#4;&#140;@S&#129;&#28;&aacute;&#6;&#2;@A&#28;&acirc;&nbsp;Z&#20;&nbsp; &#15;(&#144;&atilde;&Icirc;&amp;0&#129;&#39;&yuml;$&#128;<br/>J&eth;&auml;&gt; [N&#140;B&Oacute;&uml;&egrave;&acute;&ordf;&THORN;&lt;&#138;&frac34;&Ocirc;&Uacute;` 6X&shy;k&#29;&laquo;&Uacute;&Otilde;&Ecirc;&#150;dO&#128;&#2;&#21;&frac14;&eth;&Eacute;&Icirc;:3&#151;{&#8;&yen;&ouml;&#154;&#128;&#134;&amp;&igrave;&ograve;V\&auml;B&#20;&acirc;`&#131;&#3;&#28;`<br/>&Egrave;U.k]&euml;&Uacute;&atilde;&Uacute; <br/>f&pound;&#130;|/&agrave;Y&Acirc;&cent;a&raquo;Mh&#130;&#18;&#148;&ETH;&#4;/(!&#1;#&#16;B&Yacute;&ograve;&#16;&Ouml;(&#8;&Agrave;&#6;LxC&#21;&THORN;&Agrave;&#132;)&Oslash;&agrave;&Aacute;&#15;^&shy;&#132;&#39;&lt;&#133;<br/>&Ucirc;&laquo;a&Ograve;&#149;&macr;&#134;5&#12;&#133;;&Igrave;P&#8;B&egrave;&Acirc;IJ;&#16;&Ccedil;&#134;!&#12;U&uml;B&#25;&#28;&agrave;&#0;&oacute;&cent;w 0&#142;1&#132;g&lt;&atilde;&#3;&frac14;&#1;&#5;&#150;&#131;&Eacute;I&acirc;v&#16;:&deg;&#23;&#5;u&#8;&ograve;&#1;&Ecirc;&nbsp;b&#30;&#148;&aacute;&Egrave;,6&macr;&#146;+&Igrave;&auml;&amp;/&#1;&frac12;&#21;^&ograve;&#131;&#151;&agrave;&#128;7\&oslash;^m&agrave;&#3;&#17;&para;L&#132;&#31;x&ugrave;&Euml;^v&#3;&#15;&AElig;l&auml;#?&#128;&Aring;U~&#131;&#154;&times;&not;f%&raquo;&Ugrave;&brvbar;&Iacute;jv&Agrave;&#3;&aelig;Lg&#7;&nbsp;&divide; &#15;x.&Eacute;&ecirc;&deg;&aring;&#31;&eth;&#0;&#0;t&#14;&acute;&nbsp;&aring;&#140;&aelig;B&#23;&#154;&Iacute;kF3&#157;&#1;&Agrave;&egrave;F3&uacute;&#1;&#128;&#6;&#128;y%m&sup1;(l&Ugrave; &#140;f@&#12;b&Agrave;&#128;N;&Uacute;&Ntilde;&#144;&#22;&ocirc;&sect;&#27;&Yacute;&eacute;R3&#0;&#0;&#158;&gt;&otilde;&uml;&#27;}&#128;9G&ouml;^(p&#3;&#17;&thorn;&not;&eacute;M&Ucirc;&uacute;&Ouml;&cedil;&Icirc;5&sect;w&Iacute;iS&ucirc;&uacute;&times;&frac34;&gt;3&#15;&ocirc;L2&#14;l&nbsp;&#8;k@&#1;&#31;&uuml;\k];&ucirc;&Ugrave;&ETH;&Icirc;&micro;&brvbar;K&iacute;&#0;8&agrave;&Oslash;r4&Oslash;&#128;&para;&#139;&Agrave;&#129;(,&#27;&Oacute;&frac34;&aelig;u&acute;&Ccedil;=&icirc;&#7;&Agrave;&Aacute;&#6;&yuml;&szlig;&Oacute;v&#26;fP&#128;4p&nbsp; up&#131;&#152;3&#141;j`&Ucirc;&raquo;&Oacute;&acirc;&amp;w&#12;&#0;&Agrave;&#131;8&#16;&#15;&#3;=&nbsp;&Agrave;&#6;&#22;&#144;&#131;&#28;&deg;&Ucirc;&Yacute;&#127;P&para;&#159;&#31;&#29;&eacute;U;&uacute;&Ocirc;&#16;&macr;&divide;&frac12;K&#29;&#131;1&#19;[j88&#1;&#6;&acute;=&#131;&#5;&#16;|&#6;*&Oslash;&#0;&#24;&thorn;&#0;o&#30;&oslash;&ugrave;&Igrave;r&#22;&acute;&Ecirc;C&iacute;&eth;U3&#0;&#14;ex5&Eacute;z`&#5;&#17;&#24;&raquo;&#0;&#11;(@&#1;f`&eth;&#144;&#127;&#0;&frac34;Q&#152;&#3;&#15;&Uuml;&deg;bD&iquest;&Aacute;&ETH;H?&oacute;&Ecirc;&ccedil;&lt;&ocirc;9&curren;&deg;&#7;&#39;h@&#16;d0p&#21;&uml;&#0;&ccedil;&lt;&Iuml;A&#1;6&#144;&#6;&#26;&#8;$&egrave;e z&#21;&THORN;Lv&pound;#Z&Icirc;&lt;&uml;&#2;&#137;Y&Ccedil;&#1;&#17;H&Aacute;&#2;g&#152;&Aacute;&#6;<br/>`&otilde;&laquo;&#19;&frac14;&agrave;i&ETH;v&#18;8 &#144;6&nbsp;&#128; e0r&#21;&#152;&#16;&atilde;&Acirc;7&sup1;&Eacute;C&amp;&ograve;&Aring;&#137;&ccedil;&#129;&uml;7&#0;&#7;m&Oslash;@&Yacute;&euml;&#142;&oacute;&#130;&#23;|&euml;&#27;&Oslash;;A&#4;0&#135;&#3;&uml;&#152;&Egrave;&#131;g&yuml;&#130;&egrave;G&#159;b&quot;&Iuml;a&iacute;&#19;&#140;:&#14;p&#16;&#132;&Egrave;&Oacute;}&ograve;W&Iuml;z&#14;&gt;&#144;&#131;&frac14;g&#30;&#12;&eth;%H&#27;L|&acirc;&THORN;&#135;!&para;I5&#136;&#8;p`&#129;&#6;&#136;&Agrave;&#3;7&times;9&igrave;+_&eth;&#15;&ETH;&gt; [/@&#18;&Agrave;&Agrave;&divide;&agrave;S&curren;&#7;&#22;&#16;&#129;&#5;&curren; &#130;3&#24;&Ucirc;&atilde;&Ecirc;&#159;&lt;&oacute;g&iuml;&uuml;&#15;$a&#6;i(&#130;<br/>f`&#134;5P&yuml;&Yacute;&Ouml;O&#136;&#7;&sup2;/&#130;&#6;&lt;^&#12;&AElig;N&#3;&oslash;&Atilde;_&divide;&raquo;&#147;&iquest;&uuml;&Icirc;&#151;&#4;&ccedil;&#135;~3P&#128;f`&#6;r &#7;0@&#1;&#20;&deg;&#6;4p&#6;&Aacute;&#39;&#2;&#18;&egrave;v&laquo;&divide;&#7;&AElig;V&#4;&#29;&middot;&#127;&Euml;ww&#0;&egrave;|2&eth;&#129;2&#0;&#6;!&#8;&#6;$&#8;&#6;&#20;&deg;&#128;&#20;&ETH;&#3;k&#16;|&Oslash;w&#2;&Uacute;&#39;&#5;8&ETH;&#3;&#22;X&#4;E`&#6;&#5;&uml;&#129;&#27;&Egrave;s&#29;&#8;&#130;#H&#130;4@&#3;`&nbsp;&#128; &#24;|&#24;&#144;q.&Egrave;z1Hr4(&#7;&#7;&#152;&#129;9&divide;z&#27;&Oslash;|&#30;&Egrave;&yuml;&#131;%&#8;&#6;&#2;&#8;&#3;^&#151;Tb&#128;&#3;&quot;p&#2;.(u1(&#6;&#127; &#7;E&#144;&#128;M&#152;&#129;&uuml;&#39;~:&ccedil;q&#30;&times;|&#31;(&#130;&igrave;&#151;&#4;b&#24;|A`|^&egrave;vA&deg;zb&cedil;&#6;e&#8;&#3;fx&#131;8&cedil;|8&Ccedil;&#134;3&eth;&#1;&#31;h&#6;&euml;V}&Aacute;&ccedil;&#1; &#144;}w(&#5;u&#8;w3h&#5;&#39;&egrave;&#135;g&#24;&#136;j8&#136;&sup3;&#151;&#4;&iacute;&#150;&#133;&ntilde;&#39;&#5;&#141;&Oslash;&#133;.&#8;&#137;o&#135;&#1;&#2;A&#1;E&#128;&#130;~&Egrave;&#132;&#128;&oslash;&#132;&deg;gu:G{W&sect;&#136;&ntilde;&#135;&#1;&#145;(&#138;&otilde;&#23;&#4;y(&#5;bx&#6;V`&#5;=&#16;p0`&#137;6&#136;&#134;P&#8;&#139;Z&middot;&#1;3&ETH;&#6;&ntilde;G&#16;b&#16;&#4;&nbsp;&egrave;&#136;_&#24;&#4;&#8;&#144;&#135;&brvbar;8&#137;&Aacute;&Egrave;&#128;&laquo;X&#140;&ucirc;Gw&#30;&sect;m#&times;&#140;&#5;&#129;&#1;&#8;&#16;&#141;&cedil;&Egrave;z&auml;&#8;&#137;&#16;&oslash;&#7;4 &#7;&Agrave;&#152;&#141;&Atilde;&Egrave;&#132;&Uuml;&cedil;&#0;i`u2 s&Aacute;&#39;&#6;RP&#142;&iexcl;x&yuml;&#135;&Ucirc;&#135;&#1;&#0;I&#141;&euml;&#24;&#5;0`&#5;B&uml;&#141;6&uml;~E&#144;&#4;&#158;(&#142;&#7;A&#142;&uuml;(&#141;&Uacute;&#39;u&#0; &#145;&#30;0&#135;&#28;&deg;&#6;&#20;&#144;&#128; &cedil;&#6;k&#144;{&#14;&sup1;&#16;&#8;0&#146;&aelig;&egrave;&#143;&Aring;&#23;&#4;&#0;&eacute;&#1;&auml;&egrave;&#1;!&copy;&#17;g0&#146;&#17;&#137;&#139;&#22;P|R&#144;&#146;#&Eacute;&#146;-&#137;&#17;&#30;&#0;&#147;%&eacute;&#130;3&Ugrave;&#0;5 &#145;&times;&#152;&#147;&#23;&#1;&#145;&#17;&eacute;&#133;&gt;Y|&#0;)&#5;R&#128;&#147;Dy&#17;;I&#146;&yacute;&egrave;&#147; &Agrave;&#143;C&ugrave;&#148;P&Eacute;&#147;&#141;x&#135;@i&#1;8&agrave;&#148;X&#137;&#17;bP&#142;&nbsp;&Oslash;&#136;3&copy;}&#24;0&#135;a&ugrave;&#17;b&nbsp;&#146;u&#136;&#146;`&sup1;&#150;&para;&Ntilde;&#1;&uacute;&#145;(&#127;&ETH;&#1;<br/>&eth;&amp;&Ograve;Q&#16;&Iacute;&ntilde;&amp;-&#144;&amp;rI&#16;@&agrave;&#7;~&agrave;&#2;&#7;&#17;&#2;&#132;I&#152;&amp;B&#16;&#137;I&#152; &#18;&#152;&#3;1&#1;&#141;y&#26;&#4;&#129;&#152;&#133;&#153;&#2;&#25;&#146;&#152;.&#144;&#2;&#138;&#3;&#153;&#3;&aacute;&#2;&#137;&Eacute;%&#5;a&#153;-p&#16;&#137; &yuml;&#152;&#158;)&#16;G&acute;&#153;&#135;&eacute;&#152;&brvbar;I&#152;&#148;&#153;&#154; a&#153;&#143;&Eacute;&#152;&deg;)&#155;&#15;A&#155;&macr;&eacute;&#7;&plusmn;)&#22;-p&amp;&#153;a&#16;}&#137;&#154;&Atilde;&Eacute;&#151;o&#130;&#154;|&Ugrave;&#151;&#17;&ETH;&#155;&ordf;9!gb&#26;&#12;Q&#156;&#6;&iexcl;&#155;&#6;&#145;&#152;&Igrave;&#153;&#21;&#131;y&#155;&#6;&#17;&#1;&#138;Y&#16;&Uuml;&eacute;&#7;&#139;9&#16;&szlig;&#25;&#158;&raquo;&eacute;&#154;&#4;&Aacute;?&#141;&#153;&#152;! &#154;&#8;1&#158;&shy;&eacute;&#7;&micro;9&#16;&Ouml;y&#23;&#141;Y&#154;&Ucirc;&Ugrave;&#157;&#4;&aacute;&#158;&ugrave;&#137;&#159;&#8;&iexcl;&#153;&#156;y&#158;&nbsp;&eacute;&#7;&Uacute;&Ocirc;&#1;N@&#152;C&#146;&#16;&uacute;9&#154;&aelig;Y&#16;&oacute;&eacute;&#22;-&nbsp;&#158;&#7;&#145;&nbsp;&#2;!&iexcl;&#127;@&iexcl;&#12;J&#152;&Aacute;9&#16;&Ugrave;&Eacute;)&ETH;&#147;&#157;&ntilde;&sup1;&#159;&agrave;&ugrave;&#158;&#31;&uacute;&#7; &ecirc;&#22;&#137;i&#159;&THORN;&Eacute;&#159;&#19;&ordf;&cent;&#21;&Ecirc;&cent;&#23;&Ecirc;&#155;&#5;&#145;&#2;&#132; &#4;&#6;!&pound;~@&pound;&iacute;&eacute;&cent;&#127;@&#157;/z&#157;X&iexcl;&#0;%<br/>&cent;&auml;&Ugrave;&cent;!*&curren;<br/>&#17;&curren;JE&#152;(:&#16;5&#144;&#152;vI&curren;C*&yuml;&#16;&lt;j&#155;0&Uacute;&#22;+&#16;&nbsp;&#7;z&#159;E*&#158;,j&iexcl;T&Uacute;&#155;&#150;&#153;&iexcl;&#159;&#137;&iexcl;9&ordm;&yen;&#149;&sup1;&nbsp;_&ecirc;&#22;&amp;&#128;&curren;\j&brvbar;P&#154;&cent;n&Uacute;&pound;r:&#157;hj&curren;t<br/>&#159;&raquo;&eacute;&pound;N&plusmn;&#2;&#39;&#138;&nbsp;]&uacute;&sect;q&#154;&brvbar;g&ecirc;&#7;&Egrave;&sup1;&pound;u&Uacute;&brvbar;Qj&uml;U:&sect;b&#1;&curren;&#133;&Eacute;&#158;Z:&curren;&#20;&ecirc;&yen;&ograve;&copy;&#157;&#3;&plusmn;&brvbar;~&#144;&#28;w:&cent;oj&#16;&#1;j&#151;l<br/>&#21;&#15;&ecirc;&#7;&frac34;&aacute;&sect;!U&#16;&#5;z&pound;&#5;&#17;&#0;:Z&copy;&#139;&ordf;&#154;&#132;&eacute;&#2;&#144;*&yen;&#135;*&#16;&not;&ordf;&ordf;|&#25;&laquo;&yacute;I&#152;O&ecirc;&#20;S&ordf;&yen;~&ETH;&#153;&#3;0&#153;&#145;&copy;&#153;Gj&copy;&#3;&#145;&ordf;[&cent;&nbsp;x&ordm;?&#141;&Eacute;&iexcl;&#127;P&#3;&copy;:&cent;|J&#152;&#14;Z&laquo;&#3;q&laquo;!5&#0;&Iacute;&#1;&#154;&copy;&ordm;&#153;&Yacute;&Uacute;&#152;&#1;0&#1;&sup3;*&#16;l&Uacute;&#1;&#1;&ecirc;&#2;&ucirc;&ograve;&amp;&Ugrave;&#25;&#2;z&copy;&#151;u&#148;&#158;h&cent;&#22;&Ugrave; &#4;&sup3;&ordm;&#2;+&Ocirc;&ordf;O&ntilde;&yuml;&#157;&yen;<br/>&#17;&#1;&#154;&#158;&#153;&uacute;&#7;&copy;&Uacute;&#152;&yuml;&#138;&not;&reg;z&#157;&ugrave;&#2;&deg;<br/>&raquo;&deg;&#23;&cent;&deg;N&#144;(&szlig;Y&#152;&frac12;&ecirc;&#20;&igrave;D&#152;&#157; &sect;&uacute;2&#152;@0&reg;&ETH;&#19;&#1;&#5;&ordm;&plusmn;&#19;&#128;&macr;&iuml;z&plusmn;&#7;&#155;&#16;x&ugrave;&reg;&#17;&ETH;&reg;(&ucirc;&reg;&#30;&plusmn;&#2;&iquest;i&nbsp;&#1;P&uml;-&ecirc;&#4;&amp;&#133;&#23;&#150;&sup1;&not;&#5;Q&plusmn;&sup2;&ordf;&#18;&#137;I&sup2;&#11;a&#153;&ETH;&ordf;&#39;5&#16;&nbsp;@&#16;&#156;5&#16;&plusmn;b&uacute;&#17;&#146;i&shy;&#19;&#17;&nbsp;zJ$+0&deg;&agrave;i&#153;&#133;&ugrave;&acute;&#23;&#129;&copy;&yacute;&Uacute;&#16;K&euml;&#7;$&#131;6&eacute; &#4;&#17;P&reg;&#19;&aacute;&#156;KZ&plusmn;&macr;&#154;&shy;g&sup2;&curren;&Ograve;J&#152;&#154;J2iA[&gt;{6&#137;9&reg;&aacute;&#26;&deg;&#7;&plusmn;&micro;&#1;&Agrave;&shy;)&#144;&#157;;&#11;&#153;G&curren;&deg;m{&#16;&#127;&#11;&deg;@0&plusmn;D&eacute;&sup2;|&Euml;&plusmn;&#11;&plusmn;&#2;&ntilde;&ordf;&#152;&#146;&#132;&#155;&#144;&#27;&sup1;&#146;;&sup1;&#148;[&sup1;DI[&#152;&euml;&#17;&ccedil;&ntilde;&#156;2&raquo;&#2;&sup2;A&#39;&#143;&ucirc;&#7;o&#27;&#22;&#152;K&yuml;[&#7;1&#20;&#6;Q&#3;&iquest;I&ordm;&Uuml;&#138;&sup1;&cent;&#27;&#1;_&curren;&#0;&gt;&raquo;&#29;&Iuml;&#25;&#156;&#29;&agrave;&ordm;&#3;1&#0;&iquest; &ordm;&#134;[&#20;&#17;K&#152;&Uacute;&#154;&#152;8&Ucirc;&brvbar;&#4;;&#0;W&#154;&#152;D&ordf;&curren;&#5;&Ntilde;&curren;~0&laquo;&pound;&ecirc;&#7;&Ucirc;&#145;&#158;&Aacute;&#27;&laquo;D&#145;&deg;&ograve;&ecirc;&sup1;}&#26;&shy;R+&frac14;c1&#1;&Iuml;&#27;&laquo;&Oacute;&iexcl;&shy;&#129;&#139;&copy;&ecirc;&ordf;&#0;-@&acute;&plusmn;z&#29;8&#146;&#152;8jD&#132;&#137;&#154;&yuml;&ordm;&#2;&ccedil;Q&deg;&#153;*&#29;&AElig;z&#151;D&#11;&#24;&auml;&#27;&nbsp;hb&laquo;&Acirc;k&#2;&#30;&ecirc;&#22;&#142;*&plusmn;&#3;&ntilde;&frac14;m&#138;!L*&micro;&plusmn;&#137;&acute;&#4;q&laquo;&auml;9&not;&Ecirc;+&#16;fK&uml;&icirc;&#139;&iexcl;k&#155;&copy;&igrave;9&#1;&yuml;&Uacute;&frac34;$<br/>&frac14;&#3;&iexcl;&#0;}&Ucirc;&frac12;&#137;Y&#155;&Otilde;<br/>&pound;%&#156;!C&#139;&frac14;&#4;&Aacute;&frac14;vk&reg;=[&Agrave;&frac14;&#153;&#2;&#144;<br/>&iexcl;&#130;i&#2;2&uuml;&#157;Y&#154;&raquo;4&igrave;&Acirc;&Iacute;*&#16;q&#139;&#21;[&#155;&#153;&middot;9&ordf;&#129;K&frac14;&#6;&iexcl;&shy;&cent; &Aacute;&#11;<br/>&#4;&#28;&igrave;&ordf;2&ucirc;&sect;&#7;&Ugrave;&#153;&acute;&#2;&laquo;&cent;&#150;&#137;&Agrave;Q&cent;&Acirc;i&#26;&brvbar;&#7;Q&Acirc;&#6;&iexcl;&Auml;&#129;&plusmn;&brvbar;&otilde;*&Aacute;&#2;&#154;&sect;&#20;&#132;&Aring;&#24;&#11;&nbsp;#|&Aring;L&#155;&brvbar;/&frac14;&#155;&#7;&#129;&yen;&#2;1&#152;6<br/>&frac12;-*&Aring;&iexcl;&uacute;&#7;K&#155;&uml;x&Igrave;&cent;Q&Euml;&frac34;R&#156;&#21;[[&#157;&middot;i&AElig;/z&#16;&Iuml;+&#23;&curren;&uacute;&#7;&#1;&#154;&#28;&ograve;&acute;&laquo;g[&not;&#129;&ordm;&Ccedil;&#129;<br/>&Acirc;&#137;i&#2;b&#11;&#21;&#129;,&sect;&#159;&ecirc;&Egrave;&#7;a&para;&Oacute;A&Aacute;&auml;&Euml;&sect;E\&sup2;wk&nbsp;&#8;&#1;&Aacute;z&igrave;:s&euml;&#22;&#153;&#156;&brvbar;&middot;Z&uml;f&#139;&#16;&szlig;Z&nbsp;\b&para;&#5;*&sup3;w&Igrave;&Acirc;b;&ordf;zLGw&times;&igrave;&#20;&shy;\&sup2;6&#154;&uml;&#152;&Ecirc;&micro;&#130;+&reg;&#26;&Uacute;&#152;&#151;&uuml;&Euml;&#150;Y&uml;&iacute;&ordm;&#16;&#1;,&Acirc;k\&sup2;)L&Aacute;&ccedil;&copy;&Igrave;&#16;&Ntilde;&#152;i&ograve;&frac14;Y&Euml;&uml;&Acirc;&#25;&laquo;&sup3;&#26;&plusmn;&auml;&#25;&#0;&#144;Z&#3;&Ntilde;,&#22;&Aacute;&Igrave;&Atilde;&sect;&aacute;&Aring;&#145;Y&deg;2[&Igrave;&igrave;i&para;A+&uml;&#8;&#129;&copy;N&ETH;&#153;&#3;&uuml;&uml;&ograve;9O&Uuml;&Uacute;3N&Uacute;&#22;&eacute;&Uuml;&Aacute;&#139;:&Ccedil;N&#0;8&plusmn;J&micro;&Yacute;,&#16;&#16;&#156;&Atilde;S&#28;&not; &ntilde;&Euml;&Ntilde;J&micro;&#25;k&nbsp;&otilde;&#154; &#11;;&AElig;&#0;M&Egrave;&#2;&#29;&#155;&#19;&#144;&#157;&ecirc;&Ugrave;&#1;&aelig;&not;&laquo;&#7;1&#152;A&#11;&curren;&#12;&iacute;&Iacute;&iacute;I&iquest;-P&#3;[k&#159;&Aring;&not;&#153;&oacute;&#156;&#21;,m&ordm;&Eacute;I&reg;&ucirc;&pound;&#151;(&uuml;&curren;&middot;;&laquo;,&yacute;&Atilde;&#2;&#129;&sup1;&#151;&frac14;&frac14;&#3;&eth;&amp;&sup2;[&#16;h&Aacute;&curren;C&yacute;&amp;Vk&sup1;&gt;&#17;&#16;&#0;;</p> 2013-05-01T18:01:33Z Re: Issues installing DBD::Teradata on AIX server by Jens Rehsack

From: Jens Rehsack On 23.04.13 01:19, Sunil Palepu wrote:
> Hi -

++

> We had installed DBI on the AIX server but unable to install DBD::Teradata on the same server. My Unix admin is seeing "Memory fault(coredump)" error and wondering if someone can help me out. I did install this on the Linux servers in the past but this is my first time installing DBI on AIX.

How did you install that DBI?
Which compiler did you use? Which compiler flags.
Did you modify the system perl (read: where is DBI installed?)
or used local::lib?

> OS : AIX
> Perl version is : v5.8.8
> DBI version : DBI-1.625
> DBD version : DBD-Teradata-1.52
>
>
> $ sudo perl Makefile.PL
>
> *** Configuring DBD::Teradata (feature-limited free edition)...
>
> ***************************************************************
> *
> * !!!NOTE TO INSTALLERS!!!
> *
> * DBD::Teradata will be built using the following
> * directives:
> * Libraries: -L/usr/lib -lcliv2 -lnet -lsocket -lresolv -ltdusr.so
> * Include files:
> * Compile flags: -D__error_t_defined=1
> *
> * If your CLI2 libraries and/or include files are in another
> * location, please update the TDAT_DBD_CLI_LIB and
> * TDAT_DBD_CLI_INC environment variables before running
> * Makefile.PL.
> *
> ***************************************************************
>
> Memory fault(coredump)

You should probably trace where it crashes - and you should NEVER run
Makefile.PL as root.

> Thanks in advance

' welcome

Cheers
--
Jens Rehsack

2013-04-30T11:34:29Z
Re: Help with DBI, perl, mysql on ubuntu by Chad Wallace

From: Chad Wallace On Sun, 28 Apr 2013 15:30:05 -1000
syed khalid <syedk@pacificloud.com> wrote:

> 2.The code that is failing on the install is this.....
>
> #*----------------------------
> -----------------------------
> #*- Create a database after checking if it exists
> #*---------------------------------------------------------
> sub create_db
> {
> my ($dbname, $userid, $pass) = @_;
>
> #*-- check for a duplicate db
> ----->> my $dbh =
> DBI->connect("DBI:mysql:mysql:localhost:3306","$userid","$pass");
> my @dbs = $dbh->func('_ListDBs');
> foreach my $db (@dbs)
> { if ($db eq $dbname) { $dbh->disconnect(); return(); } }
>
> #*-- create the db
> $dbh->do("create database $dbname"); $dbh->disconnect();
> return();
> }
>
> The error I am getting is this Line 138 refers to the ---------> line
> above)
>
>
> DBI connect('mysql:localhost:3306'
> ,'root',...) failed: Access
> denied
> for user 'root'@'localhost' (using password: NO) at ../TextMine/DbCall.pm line 138
^^^^^^^^^^^^^^^^^^

This means you didn't give a password. I can see that you do pass
"$pass" to the DBI->connect() call above, so it must be that $pass is
being passed a blank value when your sub create_db() is called. You
should look at the code that calls that function to find why it passes
a blank value.


--

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0

2013-04-29T18:57:21Z
Re: Help with DBI, perl, mysql on ubuntu by mnhan

From: mnhan

> I apologize if this is not the right forum to ask question.
>
> Background
> =========
>
> I am running Ubuntu 12.04 on my laptop. it is the desktop version.
>
> I am aslo running MYSQL server version 5.5.29
>
> I am running into some problems which seem fairly basic and could be
> related to one or both of the following:
>
> 1. It looks like if I specify the "h" flag things work. However, if I use
> "root@localhost", I run into problems.
>
> syedk@syedk-ThinkPad-T410:~$ mysql -uroot -hlocalhost -p mysql
> Enter password:
> Reading table information for completion of table and column names
> You can turn off this feature to get a quicker startup with -A
>
> ********does not work for root@localhost (for some reason appends
> localhost)
>
> mysql -uroot@localhost -p
> Enter password:
> ERROR 1045 (28000): Access denied for user 'root@localhost'@'localhost'
> (using password: YES)

If you are using mysql to connect to the db on the localhost then this is
not a valid syntax, please read the manual. mysql is not ssh. It does
not take the @localhost after the username to connect to a host. If you
do not specify a -h is assumes that you are connecting to localhost, so it
appends that for you. That is why you are getting @localhost 2x.

>
> 2.The code that is failing on the install is this.....
>
> #*----------------------------
> -----------------------------
> #*- Create a database after checking if it exists
> #*---------------------------------------------------------
> sub create_db
> {
> my ($dbname, $userid, $pass) = @_;
>
> #*-- check for a duplicate db
> ----->> my $dbh =
> DBI->connect("DBI:mysql:mysql:localhost:3306","$userid","$pass");
> my @dbs = $dbh->func('_ListDBs');
> foreach my $db (@dbs)
> { if ($db eq $dbname) { $dbh->disconnect(); return(); } }
>
> #*-- create the db
> $dbh->do("create database $dbname"); $dbh->disconnect();
> return();
> }
>
> The error I am getting is this Line 138 refers to the ---------> line
> above)
>
>
> DBI connect('mysql:localhost:3306'
> ,'root',...) failed: Access
> denied
> for user 'root'@'localhost' (using password: NO) at
> ../TextMine/DbCall.pm line 138
> Can't call method "func" on an undefined value at
> ../TextMine/DbCall.pm line 139.
>
> My mysql may not have all the options loaded?? I loaded DBI but may need
> DBD. Also my databases only have this
>
> mysql> show databases
> -> ;
> +--------------------+
> | Database |
> +--------------------+
> | information_schema |
> | test |
> +--------------------+
> 2 rows in set (0.00 sec)
>

Did you run the mysql_install_db script after installation? the mysql db
for storing user and database information does not appear to be here.
Since its not here, you can't connect to it via dbi. Try specifying test
instead of mysql as the database name in your dsn.

Michael


2013-04-29T02:34:51Z
Help with DBI, perl, mysql on ubuntu by syed khalid

From: syed khalid I apologize if this is not the right forum to ask question.

Background
=========

I am running Ubuntu 12.04 on my laptop. it is the desktop version.

I am aslo running MYSQL server version 5.5.29

I am running into some problems which seem fairly basic and could be
related to one or both of the following:

1. It looks like if I specify the "h" flag things work. However, if I use
"root@localhost", I run into problems.

syedk@syedk-ThinkPad-T410:~$ mysql -uroot -hlocalhost -p mysql
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2499
Server version: 5.5.29-0ubuntu0.12.04.2 (Ubuntu)

Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.

********does not work for root@localhost (for some reason appends
localhost)

mysql -uroot@localhost -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root@localhost'@'localhost'
(using password: YES)

2.The code that is failing on the install is this.....

#*----------------------------
-----------------------------
#*- Create a database after checking if it exists
#*---------------------------------------------------------
sub create_db
{
my ($dbname, $userid, $pass) = @_;

#*-- check for a duplicate db
----->> my $dbh =
DBI->connect("DBI:mysql:mysql:localhost:3306","$userid","$pass");
my @dbs = $dbh->func('_ListDBs');
foreach my $db (@dbs)
{ if ($db eq $dbname) { $dbh->disconnect(); return(); } }

#*-- create the db
$dbh->do("create database $dbname"); $dbh->disconnect();
return();
}

The error I am getting is this Line 138 refers to the ---------> line above)


DBI connect('mysql:localhost:3306'
,'root',...) failed: Access
denied
for user 'root'@'localhost' (using password: NO) at
../TextMine/DbCall.pm line 138
Can't call method "func" on an undefined value at
../TextMine/DbCall.pm line 139.

My mysql may not have all the options loaded?? I loaded DBI but may need
DBD. Also my databases only have this

mysql> show databases
-> ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.00 sec)


--
*Syed Khalid*
**
*CEO*
**
*Pacific Cloud*
**
*1-408-655-1096*

2013-04-29T01:30:19Z
MySQL Cluster and transient errors by Simon Wistow

From: Simon Wistow We're using MySQL Cluster and get errors like

DBD::mysql::st execute failed: Got temporary error 1218 'Send Buffers
overloaded in NDB kernel' from NDBCLUSTER at
/usr/local/share/perl/5.10.1/Data/ObjectDriver/Driver/DBI.pm line 161.

Pretty frequently. Since most of these errors are temporary we should
probably retry them but I'm not sure whether there's any established
best practice for this, especially within transactions. Should we retry
the individual statement or retry the whole transaction?

There's this module

http://search.cpan.org/~bduggan/DBIx-TryAgain-0.05/lib/DBIx/TryAgain.pm

and I'm wondering if anyone's used it in anger.

For what it's worth these are the temporary errors we get

270 'Transaction aborted due to node shutdown'
1218 'Send Buffers overloaded in NDB kernel'
4010 'Node failure caused abort of transaction'
4028 'Node failure caused abort of transaction'
4119 'Simple/dirty read failed due to node failure'"

Simon


2013-04-23T16:08:02Z
Issues installing DBD::Teradata on AIX server by Sunil Palepu

From: Sunil Palepu Hi -

We had installed DBI on the AIX server but unable to install DBD::Teradata on the same server. My Unix admin is seeing "Memory fault(coredump)" error and wondering if someone can help me out. I did install this on the Linux servers in the past but this is my first time installing DBI on AIX.

OS : AIX
Perl version is : v5.8.8
DBI version : DBI-1.625
DBD version : DBD-Teradata-1.52


$ sudo perl Makefile.PL

*** Configuring DBD::Teradata (feature-limited free edition)...

***************************************************************
*
* !!!NOTE TO INSTALLERS!!!
*
* DBD::Teradata will be built using the following
* directives:
* Libraries: -L/usr/lib -lcliv2 -lnet -lsocket -lresolv -ltdusr.so
* Include files:
* Compile flags: -D__error_t_defined=1
*
* If your CLI2 libraries and/or include files are in another
* location, please update the TDAT_DBD_CLI_LIB and
* TDAT_DBD_CLI_INC environment variables before running
* Makefile.PL.
*
***************************************************************

Memory fault(coredump)



Thanks in advance
Sunil

2013-04-22T23:20:05Z
Building DBD::Oracle with one version but deploying with another by John Wiersba <p>From: John Wiersba Hi, I&#39;d like to find out how to build/install DBD::Oracle with one version of Oracle client but then deploy it with a potentially different client version, say on a server without the original client version (or with it installed in a different location).&nbsp; It seems like the Oracle client libraries can be loaded dynamically at runtime, based on ORACLE_HOME, so there doesn&#39;t need to be a dependency on those exact client libraries that were used at build/install time.&nbsp; <br/><br/>Another way of asking:&nbsp; How does ActiveState deploy DBD::Oracle without needing to build it (maybe no C compiler is available), on servers with different versions of the Oracle client libraries installed?<br/><br/><br/>Thanks!<br/>-- John<br/><br/></p> 2013-04-18T05:03:33Z