Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10034 - dev-perl/DBD-mysql-2.1013-r1 ebuild error
Summary: dev-perl/DBD-mysql-2.1013-r1 ebuild error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-31 16:41 UTC by Avi Schwartz
Modified: 2023-07-08 21:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Avi Schwartz 2002-10-31 16:41:44 UTC
As the error message indicates later, it claims that it cannot find DBI.pm and
DBI/DBD.pm.  DBI.pm is installed:

bash-2.05a# locate DBI.pm
/usr/lib/perl5/site_perl/5.6.1/i686-linux/Bundle/DBI.pm
/usr/lib/perl5/site_perl/5.6.1/i686-linux/DBI.pm

However DBI/DBD.pm is not installed.  Is it a missing dependency of some kind or
a problem with the ebuild?

Here is the error:

bash-2.05a# emerge dev-perl/DBD-mysql
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-perl/DBD-mysql-2.1013-r1 to /
>>> md5 ;-) DBD-mysql-2.1013.tar.gz
>>> Unpacking source...
>>> Unpacking DBD-mysql-2.1013.tar.gz
patching file Makefile.PL
>>> Source unpacked.
I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I'/usr/include/mysql'
  libs          (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz -lcrypt
-lnsl -lm
  nocatchstderr (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: Can't locate DBI.pm in @INC (@INC
contains: /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl .) at (eval 4) line 3.
Can't locate DBI/DBD.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux
/usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at Makefile.PL line 285.
make: *** No targets specified and no makefile found.  Stop.

!!! ERROR: The ebuild did not complete successfully.
!!! Function perl-module_src_compile, Line 10, Exitcode 2
!!! compilation failed
Comment 1 SpanKY gentoo-dev 2002-10-31 17:21:05 UTC
what if you re-emerge it DBI ? 
Comment 2 Avi Schwartz 2002-10-31 17:46:26 UTC
I forgot to mention it in the original bug report, but I did try to re-emerge
dev-perl/DBI but that did not help.
Comment 3 Paul Belt 2002-11-03 10:59:23 UTC
Run a qpkg -I -l dev-perl/DBI

Did it install into /usr/lib/perl5/site_perl/5.6.1 or /usr/lib/site_perl/5.6.1
Comment 4 Avi Schwartz 2002-11-04 13:27:01 UTC
/usr/lib/site_perl/5.6.1/i686-linux
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2002-11-05 10:00:39 UTC
emerge rsync
emerge ExtUtils-MakeMaker

The MakeMaker package fixes this bug. It is now part of all system profiles (so 
it is installed following an emerge sync && emerge -u system) as well as being 
a part of the perl-modules eclass (again - it was, was dropped, now it's back) 
as of a few days ago. This should resolve your problem for all future perl 
modules (and packages that install perl modules, hopefully) that you emerge. 
Please report back if it does not work.

Heck, please report back if it does =:)

Michael
Comment 6 Avi Schwartz 2002-11-06 08:25:50 UTC
Workded.  The steps I had to take were:

1. Reemerge ExtUtils-MakeMaker
2. Remerge dev-perl/DBI
3. emerge dev-perl/DBD-mysql
Comment 7 Larry the Git Cow gentoo-dev 2023-07-08 21:22:22 UTC Comment hidden (obsolete)