Re: Here is a classic one for you

2015-01-02 Thread Jeff Urlwin
Depending upon a few factors- I'd also check the file owner and permissions.  
We have a nasty requirement that our root umask eliminates group and world 
access to files created by root.  Wreaks havoc on Perl module installations.  

Sent from my iPhone

> On Jan 2, 2015, at 12:18 PM, The Doctor  wrote:
> 
>> On Fri, Jan 02, 2015 at 10:22:01AM -0600, Matthew Musgrove wrote:
>>> On Thu, Jan 1, 2015 at 5:53 PM, The Doctor  wrote:
>>> 
>>> I start a programme with a DBI dependency and I get:
>>> 
>>> Can't locate object method "bootstrap" via package "DBI" at
>>> /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 277.
>>> BEGIN failed--compilation aborted at
>>> /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 284.
>>> 
>>> 
>>> All right the bs file exists.
>>> 
>>> What else is not correct?
>>> 
>>> How do I do a debug on this?
>>> 
>>> --
>>> Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@
>>> nl2k.ab.ca
>>> God,Queen and country!Never Satan President Republic!Beware AntiChrist
>>> rising!
>>> http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
>>> Merry Christmas 2014 and Happy New Year 2015
>> 
>> How did you install DBI? I've seen this problem before when someone copied
>> all of the files for a module out of their perl directory and dropped them
>> into place on a machine with a different architecture.
>> 
>> Mr. Muskrat
> 
> perl Makefile.PL
> make
> make test
> make install
> 
> -- 
> Member - Liberal International This is doctor@@nl2k.ab.ca Ici 
> doctor@@nl2k.ab.ca
> God,Queen and country!Never Satan President Republic!Beware AntiChrist 
> rising! 
> http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
> Birthday 29 Jan 1969, REdhill Surrey, England, UK


Re: Here is a classic one for you

2015-01-02 Thread The Doctor
On Fri, Jan 02, 2015 at 10:22:01AM -0600, Matthew Musgrove wrote:
> On Thu, Jan 1, 2015 at 5:53 PM, The Doctor  wrote:
> 
> > I start a programme with a DBI dependency and I get:
> >
> > Can't locate object method "bootstrap" via package "DBI" at
> > /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 277.
> > BEGIN failed--compilation aborted at
> > /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 284.
> >
> >
> > All right the bs file exists.
> >
> > What else is not correct?
> >
> > How do I do a debug on this?
> >
> > --
> > Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@
> > nl2k.ab.ca
> > God,Queen and country!Never Satan President Republic!Beware AntiChrist
> > rising!
> > http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
> > Merry Christmas 2014 and Happy New Year 2015
> >
> 
> How did you install DBI? I've seen this problem before when someone copied
> all of the files for a module out of their perl directory and dropped them
> into place on a machine with a different architecture.
> 
> Mr. Muskrat

perl Makefile.PL
make
make test
make install

-- 
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising! 
http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
Birthday 29 Jan 1969, REdhill Surrey, England, UK


Re: Here is a classic one for you

2015-01-02 Thread Matthew Musgrove
On Thu, Jan 1, 2015 at 5:53 PM, The Doctor  wrote:

> I start a programme with a DBI dependency and I get:
>
> Can't locate object method "bootstrap" via package "DBI" at
> /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 277.
> BEGIN failed--compilation aborted at
> /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 284.
>
>
> All right the bs file exists.
>
> What else is not correct?
>
> How do I do a debug on this?
>
> --
> Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@
> nl2k.ab.ca
> God,Queen and country!Never Satan President Republic!Beware AntiChrist
> rising!
> http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
> Merry Christmas 2014 and Happy New Year 2015
>

How did you install DBI? I've seen this problem before when someone copied
all of the files for a module out of their perl directory and dropped them
into place on a machine with a different architecture.

Mr. Muskrat


Re: Here is a classic one for you

2015-01-02 Thread The Doctor
On Fri, Jan 02, 2015 at 07:21:44AM -0800, jerry wrote:
> In general, if I see a "file not found" when a file exists, I've
> learned
> to quickly check that it has the right bitlength.  e.g. a 32-bit
> library
> in a 64-bit world will give you that error.  Drove me nuts the first
> time
> I encountered it.  There was the file right in front of my nose, and
> yet
> "File not found".
> 
>  - Jerry Kaidor
>

Hmmm! This is a 32-bit BSD Unix system.
 
> 
> On 01/02/2015 07:29, The Doctor wrote:
> >On Fri, Jan 02, 2015 at 07:10:42PM +1100, Ivan Wills wrote:
> >>My technique for that is to add the following lines in DBI (say
> >>on line
> >>283):
> >>use Carp qw/cluck/;
> >>cluck "Here";
> >>
> >>And see what the stack suggests is going on.
> >>
> >>Ivan
> >>
> >>On 2 January 2015 at 10:53, The Doctor
> >> wrote:
> >>
> >>> I start a programme with a DBI dependency and I get:
> >>>
> >>> Can't locate object method "bootstrap" via package "DBI" at
> >>> /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line
> >>277.
> >>> BEGIN failed--compilation aborted at
> >>> /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line
> >>284.
> >>>
> >
> >No dice.  All that happens is that 284 becomes 286.
> >
> >>>
> >>> All right the bs file exists.
> >>>
> >>> What else is not correct?
> >>>
> >>> How do I do a debug on this?
> >>>
> >>> --
> >>> Member - Liberal International This is doctor@@nl2k.ab.ca Ici
> >>doctor@@
> >>> nl2k.ab.ca
> >>> God,Queen and country!Never Satan President Republic!Beware
> >>AntiChrist
> >>> rising!
> >>> http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53
> >>on Atheism
> >>> Merry Christmas 2014 and Happy New Year 2015
> >>>
> >>
> >>
> >>
> >>--
> >>email/jabber:  ivan.wi...@gmail.com
> >>   /
> >>  /   _   _
> >> /  \  / | | | |
> >>/\/  \_| | |

-- 
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising! 
http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
Merry Christmas 2014 and Happy New Year 2015


Re: Here is a classic one for you

2015-01-02 Thread jerry
In general, if I see a "file not found" when a file exists, I've 
learned
to quickly check that it has the right bitlength.  e.g. a 32-bit 
library
in a 64-bit world will give you that error.  Drove me nuts the first 
time
I encountered it.  There was the file right in front of my nose, and 
yet

"File not found".

 - Jerry Kaidor


On 01/02/2015 07:29, The Doctor wrote:

On Fri, Jan 02, 2015 at 07:10:42PM +1100, Ivan Wills wrote:
My technique for that is to add the following lines in DBI (say on 
line

283):
use Carp qw/cluck/;
cluck "Here";

And see what the stack suggests is going on.

Ivan

On 2 January 2015 at 10:53, The Doctor  
wrote:


> I start a programme with a DBI dependency and I get:
>
> Can't locate object method "bootstrap" via package "DBI" at
> /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 
277.

> BEGIN failed--compilation aborted at
> /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 
284.

>


No dice.  All that happens is that 284 becomes 286.


>
> All right the bs file exists.
>
> What else is not correct?
>
> How do I do a debug on this?
>
> --
> Member - Liberal International This is doctor@@nl2k.ab.ca Ici 
doctor@@

> nl2k.ab.ca
> God,Queen and country!Never Satan President Republic!Beware 
AntiChrist

> rising!
> http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on 
Atheism

> Merry Christmas 2014 and Happy New Year 2015
>



--
email/jabber:  ivan.wi...@gmail.com
   /
  /   _   _
 /  \  / | | | |
/\/  \_| | |


Re: Here is a classic one for you

2015-01-02 Thread The Doctor
On Fri, Jan 02, 2015 at 07:10:42PM +1100, Ivan Wills wrote:
> My technique for that is to add the following lines in DBI (say on line
> 283):
> use Carp qw/cluck/;
> cluck "Here";
> 
> And see what the stack suggests is going on.
> 
> Ivan
> 
> On 2 January 2015 at 10:53, The Doctor  wrote:
> 
> > I start a programme with a DBI dependency and I get:
> >
> > Can't locate object method "bootstrap" via package "DBI" at
> > /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 277.
> > BEGIN failed--compilation aborted at
> > /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 284.
> >

No dice.  All that happens is that 284 becomes 286.

> >
> > All right the bs file exists.
> >
> > What else is not correct?
> >
> > How do I do a debug on this?
> >
> > --
> > Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@
> > nl2k.ab.ca
> > God,Queen and country!Never Satan President Republic!Beware AntiChrist
> > rising!
> > http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
> > Merry Christmas 2014 and Happy New Year 2015
> >
> 
> 
> 
> -- 
> email/jabber:  ivan.wi...@gmail.com
>/
>   /   _   _
>  /  \  / | | | |
> /\/  \_| | |

-- 
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising! 
http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
Merry Christmas 2014 and Happy New Year 2015


Re: Escaping placeholders, take 2

2015-01-02 Thread Tim Bunce
On Wed, Dec 31, 2014 at 03:55:42AM -, Greg Sabino Mullane wrote:
> 
> Tim Bunce wrote:
> > Wherein I attempt to summarize the requirements, the background, the 
> > options,
> > the risks, and the counter-proposal ...
> 
> Thanks for taking the time to write all this out in a coherent manner.

You're welcome. I find the effort usually greatly clarifies my thinking.

> I may once again assume the role of devil's advocate herein.

Thanks.

> > In modern application development, however, the DBI is just another
> > foundation layer, low down in the stack. Above it are modules like
> > SQL::Abstract, and ORMs like DBIx::Class. Companies have large and
> > growing investments in these stacks, plus the modules they've built over
> > them to provide abstraction and encapsulation of business logic.
> 
> Agreed.
> 
> > For these large applications the attribute workarounds are rarely helpful.
> 
> Is that a true generalization? Or is it only because these large 
> applications have not bothered to support the attributes?

Supporting attributes means supporting (non-standard) numbered placeholders.
Supporting numbered placeholders is, as previously described, very far
from trivial for SQL::Abstract and thus DBIx::Class.  (I certainly
wouldn't characterize this as "not bothered".)


> > +Some drivers allow you to prevent the recognition of a placeholder by 
> > placing a
> > +single backslash character (C<\>) immediately before it. The driver will 
> > remove
> > +the backslash character and ignore the placeholder, passing it unchanged 
> > to the
> > +backend. If the driver supports this then L(9000) will return 
> > true.
> 
> Seems a good start. I don't like the phrase "prevent recognition of a 
> placeholder" 
> but it's too late at night to propose an alternate right now.

s/prevent/disable/?


> >> Which likely means that SQL::Abstract and/or DBIx::Class will need to
> >> know as well. (Unless they expose the DBD directly to the user, which
> >> ruins the point a bit).
> >
> > Not true.
> 
> How will a user of SQL::Abstract know if escapes are supported or not? 
> Isn't the job of such frameworks to release the user from such worries, 
> or at least present some sort of attribute the user can rely on?

SQL::Abstract isn't (just) about portability. It allows SQL conditions
to be expressed and composed via Perl data structures. That's very
powerful functionality. Users who want to use a postgres ? operator know
they're using DBD::Pg and can simply require the appropriate version.


> > Question marks are the international standard for placeholders.
> > The DBI should have specified a way to escape them from the start.
> > I'm attempting to fix that now.
> 
> Taking off the devil's advocate hat now. I can agree with this 
> position and the backslash solution.

Great. Thanks Greg.

> > To demonstrate the relative complexity, here's a proof-of-concept patch
> > for DBD::Pg to implement support for escaping question mark placeholders:
> >
> > https://github.com/timbunce/dbdpg/commit/54358c7a7efeeaf2666c5e28c301e47624fb9615
> 
> +1, thanks for that. I certainly cannot see any harm in adding escape support 
> to DBD::Pg, and then letting the upstream modules start adapting to it.

Wonderful. I'll work on polishing up the patch.

Tim.


Re: Here is a classic one for you

2015-01-02 Thread Ivan Wills
My technique for that is to add the following lines in DBI (say on line
283):
use Carp qw/cluck/;
cluck "Here";

And see what the stack suggests is going on.

Ivan

On 2 January 2015 at 10:53, The Doctor  wrote:

> I start a programme with a DBI dependency and I get:
>
> Can't locate object method "bootstrap" via package "DBI" at
> /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 277.
> BEGIN failed--compilation aborted at
> /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/DBI.pm line 284.
>
>
> All right the bs file exists.
>
> What else is not correct?
>
> How do I do a debug on this?
>
> --
> Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@
> nl2k.ab.ca
> God,Queen and country!Never Satan President Republic!Beware AntiChrist
> rising!
> http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
> Merry Christmas 2014 and Happy New Year 2015
>



-- 
email/jabber:  ivan.wi...@gmail.com
   /
  /   _   _
 /  \  / | | | |
/\/  \_| | |