On Tue, 11 Jun 2002 at 9:49pm (-0400), Chris Young wrote:

> I have been trying to install a Perl module DBD::mysql on our Red Hat 7.2
> machine and keep running into problems. I am moving from FreeBSD Unix. I
> had used CPAN on our older system to install this module with no problems.
>
> I can't get CPAN to install the module correctly itself. I get the
> following error:
[...]
> 
> Is there an rpm version I can install and where would I get it? I can only
> find the tar.gz version at CPAN.
> 
> Any help would be greatly appreciated.
> 
> Chris
> 

I don't like to use CPAN on my redhat boxes 'cause it doesn't enter the 
package information in the RPM database.  That said the consistancy of CPAN 
packages really works in our favour.  Since they all build the same it's a 
pretty trivial affair to make spec file to build and install the package for 
us.

I forget what package I borrowed it from but I've hacked together a spec
file that just requires changing the module name and version and it builds
most any CPAN perl module.  It requires a little additional tweeky for DBD
modules becuase they depend on DBI and the headers for the database they're
build for...  anyway... find attached a spec file... if you have
DBD-mysql-2.1017.tar.gz in your .../SOURCES/ dir this should get you want
you want.

M.

-- 
WebCentral Pty Ltd           Australia's #1 Internet Web Hosting Company
Level 5, 100 Wickham St.           Network Operations - Systems Engineer
PO Box 930, Fortitude Valley.                     phone: +61 7 3249 2557
Queensland, Australia 4006.                       pgp key id: 0x900E515F

Attachment: perl-DBD-mysql.spec.gz
Description: GNU Zip compressed data

Reply via email to