mysql/perl confusion

mysql/perl confusion

am 22.07.2003 01:03:36 von Peter Stoddard

Hi folks

I am trying to get mysql to work. I have downloaded and compiled the
code using both fink (v.3.23.54a) and the Mac OS X Package Installer
(v.4.0.13) from www.mysql.com, and I get the same errors either way.

I get mysql running fine. Then I try to run the benchmark tests called
run-all-tests:

The computer says:

[peter12:local/mysql/sql-bench] peter12# ./run-all-tests
Can't locate loadable object for module DBI in @INC (@INC contains:
/System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin
/Library/Perl /Library/Perl /Network/Library/Perl/darwin
/Network/Library/Perl /Network/Library/Perl .) at
/System/Library/Perl/darwin/DBI.pm line 250
BEGIN failed--compilation aborted at /System/Library/Perl/darwin/DBI.pm
line 250.
Compilation failed in require at ./run-all-tests line 36.
BEGIN failed--compilation aborted at ./run-all-tests line 36.

I say:

I thought there must be something wrong with my version of DBD, so I
downloaded and tried to build DBD-mysql-2.9002, and found the following:

The computer says:

# perl Makefile.PL
I will use the following settings for compiling and testing:

cflags (mysql_config) = -I'/sw/include/mysql'
libs (mysql_config) = -L/sw/lib/mysql -lmysqlclient -lz -lm
-L/sw/lib
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testuser (default ) =

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good

Warning: prerequisite DBI failed to load: DBI object version 1.37 does
not match $DBI::VERSION 1.31 at
/System/Library/Perl/darwin/DynaLoader.pm line 219, line 50.
BEGIN failed--compilation aborted at /System/Library/Perl/darwin/DBI.pm
line 250, line 50.
Compilation failed in require at (eval 4) line 3, line 50.
Using DBI 1.31 installed in /Library/Perl/darwin/auto/DBI
Writing Makefile for DBD::mysql

I say:

Line 219 of /System/Library/Perl/darwin/DynaLoader.pm says

# See comment block above
&$xs(@args);

.... and the comment block they refer to says:

# Many dynamic extension loading problems will appear to come from
# this section of code: XYZ failed at line 123 of DynaLoader.pm.
# Often these errors are actually occurring in the initialisation
# C code of the extension XS file. Perl reports the error as being
# in this perl code simply because this was the last perl code
# it executed.

I am running Mac OSX v.10.2.6. I don't know where to post this, so I
will start here first.

Thanks in advance.

Pete
--
Peter Stoddard -- GnuPG ID 0x303F62AC


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org