At 11:41 Uhr -0500 22.05.2001, Bill Spornitz wrote:
>I'm trying to install DBI and DBD and am running into problems.
>
>
>Using cpan-mac (properly installed, as far as I can tell) and MacPerl
>5.6.1a2 I'm getting the following error when dropping
>DBI-1.08-bin-2-MacOS.tar.gz on installme.plx:
>
>
>Compression not available at Dev:Pseudo line 19
>Can't use an undefined value as an ARRAY reference at Proust:Desktop
>Folder:MacPerl Ÿ:site_perl:Archive:Tar.pm line 708.
>
Bill, please don't mix tools, modules and other stuff for the old MacPerl (5.004) with
MacPerl 5.6.1. This will _not_ work.
The installer was written for MacPerl 5.004 and (currently) doesn't work if run with
MacPerl 5.6.1. installme.plx uses Archive::Tar which in fact uses Compress::Zlib,
which isn't bundled with MacPerl 5.6.1. Compress::Zlib is an XS-module that has to be
built for MacPerl 5.6.1. Since old extension modules built for MacPerl 5.004 aren't
binary compatible with MacPerl 5.6.1, it wouldn't help if you get a copy of the
pre-built version of Compress::Zlib from the MacPerl Porters page
(http://pudge.net/mmp/). There may also be other issues, for example with
ExtUtils::MM_MacOS, I'm not sure. Hence, module installation for MacPerl 5.6.1
currently requires some handwork.
DBI-1.08-bin-2-MacOS.tar.gz isn't binary compatible, too. It has been built for
MacPerl 5.004 and could _not_ be used with MacPerl 5.6.1. So even if the installer
would work with the new MacPerl, that wouldn't help you much. Since I'm interested in
DBI, I've already built DBI 1.14 for MacPerl 5.6.1, and it works fine. If you don't
want to build it yourself, I will send you the shared library (you still have to
download the DBI 1.14 archive from CPAN, though) -- please email me.
DBI without a database driver (DBD) won't help you much. Unfortunately, you didn't
tell us which DBD driver you are planning to use. If it's DBD::CSV, you are again out
of luck, since there are two extension modules involved that still need to be built
for MacPerl 5.6.1 (Text::CSV_XS and SQL::Statement). However, the (few) pure Perl
drivers should work fine. Btw, you may want to visit my website at
http://usemacperl.webjump.com/dbi.html
for more information on DBDs for MacPerl (5.004).
To sum this up: Since MacPerl 5.6.1 is work in progress, you may want to stick with
the old MacPerl for your DBI things (at least for a short while :), unless you have a
good reason not to do so.
>
>Sorry if this is a stupid question, but my experience with Macperl is
>less than my experience with perl on *nix...
>
>
>Bill
HTH.
Best regards,
--Thomas
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com