Using DBI

Bradley Baetz bbaetz at acm.org
Sat Jan 18 22:52:33 UTC 2003


On Sat, Jan 18, 2003 at 01:50:36PM +0000, Gervase Markham wrote:
> Bradley Baetz wrote:
> >(You need to
> >update DBI/DBD::mysql for this to work. checksetup should pick that up,
> >though)
> 
> DBI would not install in Perl 5.6.1 without Time::HiRes. Is that an 
> additional dependency?

No, its a testing bug which has been fixed in the devel version, IIRC.
you only need it to run the tests.

> 
> >- Use the DBI helper functions. They're easier to write, clearer to
> >understand, and some of them are written in XS (ie C) which makes them
> >faster. (Postgres doesn't use the C version, and you must have compiled
> >your DBD:: driver _after_ installing the updated DBI for the C version
> >to be used)
> 
> Currently, if you don't have the right versions of both these, you get:
> Bugzilla requires some Perl modules which are either missing from your
> system, or the version on your system is too old.
> They can be installed by running (as root) the following:
>    perl -MCPAN -e 'install "DBD::mysql"'
>    Minimum version required: 2.1010
>    perl -MCPAN -e 'install "DBI"'
>    Minimum version required: 1.32
> 
> If DBI should be installed before DBD, should we reverse the order of 
> these messages?

Hmm. Yeah, %missing could probably be made into an array to preserve
order.

Note that it will all still work; it just won't use the XS version for
new functions which were added to the stub code.

Bradley



More information about the developers mailing list