I'm running the HP-supplied Perl 5.6.1 on OpenVMS.
I have installed a MySQ database on this machine and need to acccess it from
a Perl environment, I found I needed to build DBI and DBD::mysql.

I didn't run - as far as I could see - into problems with DBI.
BDB::mysql seemed to be another issue. I found DBD-mysql-2.9003.tar.gz on
CPAN, used the VMS config.com and got DESCRIP.MMS, and (I guess) mysql.opt.
These two needed to be changed manually before I got the package built.
(Both files can be send on request in one zip file, where changes are
marked)

Now the compilation and link succeeded with some warnings (like I've seen
elsewhere building Perl sources, even perl 5.8.3).

$ MMS install didn't give errors either.
$ MMS test however returned two major problems, I don't understand:

[screendump]
perl "-I[.blib.arch]" "-I[.blib.lib]" "-Iperl_root:[lib]"
"-Iperl_root:[lib.VMS_AXP.5_6_1]"     -e "use Test::Harness qw(&runtests
$
verbose); $verbose=0; runtests @ARGV;"  t/*.t
t/00base............
install_driver(mysql) failed: Can't load
'SMAN:[INSTALL.DBD-MYSQL-2_9003.blib.arch.auto.DBD.mysql]PL_DBD__MYSQL.E
XE;5' for module DB
D::mysql: %RMS-E-FNF, file not found at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
 at t/00base.t line 38

%SYSTEM-F-ABORT, abort

dubious
        Test returned status 44 (wstat 1024, 0x400)
                (VMS status is 44)
DIED. FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay

[/screendump]
however, the file does exist:

[screendump]
$ dir [...]*.exe

Directory SMAN:[INSTALL.DBD-MYSQL-2_9003.blib.arch.auto.DBD.mysql]

PL_DBD__MYSQL.EXE;5

Total of 1 file.
$
[/screendump]

(ran the tests from the directory where the files had been built)

This occurred for each test (as far as I can determine).

The last test failed differently:

[screendump]
t/akmisc............
Had to create DBD::mysql::dr::imp_data_size unexpectedly at
/perl_root/lib/site_perl/DBI.pm line 1057.
Use of uninitialized value in subroutine entry at
/perl_root/lib/site_perl/DBI.pm line 1057.
Can't locate object method "connect" via package "Mysql" (perhaps you
forgot to load "Mysql"?) at blib/lib/Mysql.pm line 71.
[/screendump]

Perhaps these are both very obvious - but not for me.
Anyone able to shine a light - or have another suggestion

Willem Grooters
OpenVMS developer & System manager
e: [EMAIL PROTECTED]
w: www.grootersnet.nl


Reply via email to