Re: Here is a classic one for you

Jens Rehsack <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
Am 02.01.2015 um 16:29 schrieb The Doctor <[email protected]>:

> 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 <[email protected]> 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.

But "bootstrap" wasn't found in line 277 :)
So you're fortune might improve by moving the debug code a few lines upwards ...

>>> 
>>> All right the bs file exists.

The .bs file is mostly irrelevant - the DBI.so file counts ...
Did you check `file /usr/contrib/lib/perl5/site_perl/5.18.2/i386-bsdos/auto/DBI/DBI.so`?

>>> What else is not correct?
>>> 
>>> How do I do a debug on this?

http://www.lmgtfy.com/?q=Can%27t+locate+object+method+%22bootstrap%22+via+package

Cheers
-- 
Jens Rehsack
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.