Skip Menu |

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 121
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: nwetters [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.1009
Fixed in: (no value)



Subject: CPAN install throws fatal errors
on i686-linux, CPAN throws these errors: Show quoted text
cpan> install DBD::mysql
Running install for module DBD::mysql Running make for J/JW/JWIED/DBD-mysql-2.1009.tar.gz CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.mirror.ac.uk/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/id/J/JW/JWIED/DBD-mysql-2.1009.tar.gz CPAN: MD5 loaded ok Fetching with LWP: ftp://ftp.mirror.ac.uk/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/id/J/JW/JWIED/CHECKSUMS CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/J/JW/JWIED/DBD-mysql-2.1009.tar.gz ok Scanning cache /root/.cpan/build for sizes DBD-mysql-2.1009/ DBD-mysql-2.1009/lib/ DBD-mysql-2.1009/lib/DBD/ DBD-mysql-2.1009/lib/DBD/mysql.pod DBD-mysql-2.1009/lib/DBD/mysql.pm DBD-mysql-2.1009/lib/DBD/mysql/ DBD-mysql-2.1009/lib/DBD/mysql/INSTALL.pod DBD-mysql-2.1009/lib/Mysql.pm DBD-mysql-2.1009/lib/Bundle/ DBD-mysql-2.1009/lib/Bundle/DBD/ DBD-mysql-2.1009/lib/Bundle/DBD/mysql.pm DBD-mysql-2.1009/lib/Mysql/ DBD-mysql-2.1009/lib/Mysql/Statement.pm DBD-mysql-2.1009/t/ DBD-mysql-2.1009/t/insertid.t DBD-mysql-2.1009/t/10dsnlist.t DBD-mysql-2.1009/t/30insertfetch.t DBD-mysql-2.1009/t/40bindparam.t DBD-mysql-2.1009/t/40nulls.t DBD-mysql-2.1009/t/dbdadmin.t DBD-mysql-2.1009/t/mysql.t DBD-mysql-2.1009/t/60leaks.t DBD-mysql-2.1009/t/40blobs.t DBD-mysql-2.1009/t/40listfields.t DBD-mysql-2.1009/t/akmisc.t DBD-mysql-2.1009/t/00base.t DBD-mysql-2.1009/t/40numrows.t DBD-mysql-2.1009/t/lib.pl DBD-mysql-2.1009/t/ak-dbd.t DBD-mysql-2.1009/t/mysql2.t DBD-mysql-2.1009/t/mysql.dbtest DBD-mysql-2.1009/t/50chopblanks.t DBD-mysql-2.1009/t/20createdrop.t DBD-mysql-2.1009/t/50commit.t DBD-mysql-2.1009/t/mysql.mtest DBD-mysql-2.1009/mysql.xs DBD-mysql-2.1009/constants.h DBD-mysql-2.1009/myld DBD-mysql-2.1009/MANIFEST DBD-mysql-2.1009/MANIFEST.SKIP DBD-mysql-2.1009/dbdimp.c DBD-mysql-2.1009/dbdimp.h DBD-mysql-2.1009/Makefile.PL DBD-mysql-2.1009/ChangeLog DBD-mysql-2.1009/README DBD-mysql-2.1009/INSTALL.html Removing previously used /root/.cpan/build/DBD-mysql-2.1009 CPAN.pm: Going to build J/JW/JWIED/DBD-mysql-2.1009.tar.gz Can't exec "mysql_config": No such file or directory at Makefile.PL line 168. readline() on closed filehandle PIPE at Makefile.PL line 170. Can't exec "mysql_config": No such file or directory at Makefile.PL line 168. readline() on closed filehandle PIPE at Makefile.PL line 170. Can't exec "mysql_config": No such file or directory at Makefile.PL line 168. readline() on closed filehandle PIPE at Makefile.PL line 170. Can't exec "mysql_config": No such file or directory at Makefile.PL line 168. readline() on closed filehandle PIPE at Makefile.PL line 170. Can't exec "mysql_config": No such file or directory at Makefile.PL line 168. readline() on closed filehandle PIPE at Makefile.PL line 170. Failed to determine directory of mysql.h. Use perl Makefile.PL --cflags=-I<dir> to set this directory. For details see the INSTALL.html file, section "C Compiler flags" or type perl Makefile.PL --help Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install
You do not have all prerequisites, as specified in the INSTALL.html document. For example, Red Hat offers various MySQL related RPM's like mysql-client, mysql-devel, mysql-shared, and so on. I don't know which contains the missing script (mysql_config), but one should do. If not, contact the vendor of your MySQL distribution.
Subject: Re: [cpan #121] CPAN install throws fatal errors
Date: Mon, 7 Jan 2002 17:42:00 -0000
From: "Nigel Wetters" <Nigel.Wetters [...] itv.co.uk>
To: <bug-DBD-mysql [...] rt.cpan.org>
Thanks, and sorry for not reading the docs. I installed from source and didn't have the mysql_config in my path. 'make' now works fine; however, 'make test' causes a core dump. I'm using mysql-3.23.43. Force installing the module works fine :) --nigel t/00base...........ok t/10dsnlist........ok t/20createdrop.....ok t/30insertfetch....ok t/40bindparam......ok t/40blobs..........ok t/40listfields.....ok t/40nulls..........ok t/40numrows........ok t/50chopblanks.....ok t/50commit.........ok t/60leaks..........skipped test on this platform t/ak-dbd...........ok t/akmisc...........FAILED test 44 Failed 1/351 tests, 99.72% okay t/dbdadmin.........dubious Test returned status 0 (wstat 139, 0x8b) test program seems to have generated a core DIED. FAILED tests 5-20 Failed 16/20 tests, 20.00% okay t/insertid.........ok t/mysql2...........ok t/mysql............FAILED test 23 Failed 1/68 tests, 98.53% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/akmisc.t 351 1 0.28% 44 t/dbdadmin.t 0 139 20 16 80.00% 5-20 t/mysql.t 68 1 1.47% 23 1 test skipped. Failed 3/18 test scripts, 83.33% okay. 18/758 subtests failed, 97.63% okay. make: *** [test_dynamic] Error 9 Coming up tonight on ITV Digital and ITV1: * Set sail (or not!) with the Cruises From Hell - 9.00pm ITV1 * Intergalactic adventure with the new series in the Star Trek saga - 8.00pm Sky One *************************************** This e-mail message, including any attachments, is intended only for the person or entity to which it is addressed, and may contain confidential information. If you are not the intended recipient, any review, retransmission, disclosure, copying, modification or other use of this e-mail message or attachments is strictly forbidden. If you have received this e-mail message in error, please contact the author and delete the message and any attachments from your computer. You are also advised that the views and opinions expressed in this e-mail message and any attachments are the author's own, and may not reflect the views and opinions of ITV Digital plc, 346 Queenstown Rd, London SW8 4DG. Reg No. 3302715
At first glance I didn't think this bug was the same, but upon seeing: Show quoted text
> Failed Test Stat Wstat Total Fail Failed List of Failed > -------------------------------------------------------------- > t/akmisc.t 351 1 0.28% 44 > t/dbdadmin.t 0 139 20 16 80.00% 5-20 > t/mysql.t 68 1 1.47% 23
It looks like this bug is the same as another i just created. I'm using the lastest MySQL, perl RPM from Red Hat, and DBD-mysql release.
From: Nigel Wetters
Solution: Find mysql_config and extend PATH to include it. For example: [nwetters@localhost nwetters]$ locate mysql_config /usr/local/mysql-3.23.49/bin/mysql_config [nwetters@localhost nwetters]$ export PATH=$PATH:/usr/local/mysql-3.23.49/bin/mysql_config Then try making the perl module again. Hope it helps
This bug needs to be closed ;) [guest - Mon Jan 7 11:47:27 2002]: Show quoted text
> on i686-linux, CPAN throws these errors: >
> cpan> install DBD::mysql
> Running install for module DBD::mysql > Running make for J/JW/JWIED/DBD-mysql-2.1009.tar.gz > CPAN: LWP::UserAgent loaded ok > Fetching with LWP: >
ftp://ftp.mirror.ac.uk/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/id/J/JW/JWIED/DBD- Show quoted text
> mysql-2.1009.tar.gz > CPAN: MD5 loaded ok > Fetching with LWP: >
ftp://ftp.mirror.ac.uk/sites/ftp.funet.fi/pub/languages/perl/CPAN/authors/id/J/JW/JWIED/CHECKSUMS Show quoted text
> CPAN: Compress::Zlib loaded ok > Checksum for /root/.cpan/sources/authors/id/J/JW/JWIED/DBD-mysql- > 2.1009.tar.gz ok > Scanning cache /root/.cpan/build for sizes > DBD-mysql-2.1009/ > DBD-mysql-2.1009/lib/ > DBD-mysql-2.1009/lib/DBD/ > DBD-mysql-2.1009/lib/DBD/mysql.pod > DBD-mysql-2.1009/lib/DBD/mysql.pm > DBD-mysql-2.1009/lib/DBD/mysql/ > DBD-mysql-2.1009/lib/DBD/mysql/INSTALL.pod > DBD-mysql-2.1009/lib/Mysql.pm > DBD-mysql-2.1009/lib/Bundle/ > DBD-mysql-2.1009/lib/Bundle/DBD/ > DBD-mysql-2.1009/lib/Bundle/DBD/mysql.pm > DBD-mysql-2.1009/lib/Mysql/ > DBD-mysql-2.1009/lib/Mysql/Statement.pm > DBD-mysql-2.1009/t/ > DBD-mysql-2.1009/t/insertid.t > DBD-mysql-2.1009/t/10dsnlist.t > DBD-mysql-2.1009/t/30insertfetch.t > DBD-mysql-2.1009/t/40bindparam.t > DBD-mysql-2.1009/t/40nulls.t > DBD-mysql-2.1009/t/dbdadmin.t > DBD-mysql-2.1009/t/mysql.t > DBD-mysql-2.1009/t/60leaks.t > DBD-mysql-2.1009/t/40blobs.t > DBD-mysql-2.1009/t/40listfields.t > DBD-mysql-2.1009/t/akmisc.t > DBD-mysql-2.1009/t/00base.t > DBD-mysql-2.1009/t/40numrows.t > DBD-mysql-2.1009/t/lib.pl > DBD-mysql-2.1009/t/ak-dbd.t > DBD-mysql-2.1009/t/mysql2.t > DBD-mysql-2.1009/t/mysql.dbtest > DBD-mysql-2.1009/t/50chopblanks.t > DBD-mysql-2.1009/t/20createdrop.t > DBD-mysql-2.1009/t/50commit.t > DBD-mysql-2.1009/t/mysql.mtest > DBD-mysql-2.1009/mysql.xs > DBD-mysql-2.1009/constants.h > DBD-mysql-2.1009/myld > DBD-mysql-2.1009/MANIFEST > DBD-mysql-2.1009/MANIFEST.SKIP > DBD-mysql-2.1009/dbdimp.c > DBD-mysql-2.1009/dbdimp.h > DBD-mysql-2.1009/Makefile.PL > DBD-mysql-2.1009/ChangeLog > DBD-mysql-2.1009/README > DBD-mysql-2.1009/INSTALL.html > Removing previously used /root/.cpan/build/DBD-mysql-2.1009 > > CPAN.pm: Going to build J/JW/JWIED/DBD-mysql-2.1009.tar.gz > > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 168. > readline() on closed filehandle PIPE at Makefile.PL line 170. > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 168. > readline() on closed filehandle PIPE at Makefile.PL line 170. > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 168. > readline() on closed filehandle PIPE at Makefile.PL line 170. > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 168. > readline() on closed filehandle PIPE at Makefile.PL line 170. > Can't exec "mysql_config": No such file or directory at Makefile.PL > line 168. > readline() on closed filehandle PIPE at Makefile.PL line 170. > Failed to determine directory of mysql.h. Use > > perl Makefile.PL --cflags=-I<dir> > > to set this directory. For details see the INSTALL.html file, > section "C Compiler flags" or type > > perl Makefile.PL --help > Running make test > Make had some problems, maybe interrupted? Won't test > Running make install > Make had some problems, maybe interrupted? Won't install