By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,813 Members | 1,257 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,813 IT Pros & Developers. It's quick & easy.

can't install dbd::mysql

P: n/a
Hello,

I have problems installing DBD:mysql on Red Hat Linux 9, either from CPAN,
or mannual install. The error is the same, something related to this Kid.pm
file under perl. Should I reinstall Perl? Perl came with Red Hat Linux 9
installation. Please help.

1.) from CPAN:

perl -MCPAN -e shell

cpan> install DBI

DBI is up to date.

cpan> install DBD::mysql

I got many of these errors:

Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm line 97.

Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm line 97.

.....

Unsuccessful stat on filename containing newline at
/usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm line 97.

Multiple copies of Driver.xst found in:
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBI/
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBI/ at
Makefile.PL line 295

Using DBI 1.45 (for perl 5.008 on i386-linux-thread-multi) installed in
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBI/

Writing Makefile for DBD::mysql

Makefile:89: *** missing separator. Stop.

/usr/bin/make -- NOT OK

Running make test

Can't test without successful make

Running make install

make had returned bad status, install seems impossible

2.) Manually install from source:

download DBD-mysql-2.9003.tar, untar and run this:

perl Makefile.PL

I got exactly the same error as in 1.)
--
Allen Guan

--
Allen Guan
281-489-2314
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Yun Guan wrote:
Hello,

I have problems installing DBD:mysql on Red Hat Linux 9, either from CPAN,


The errors you describe are not familiar to me, but there are two things
that are kind of "frequent obstacles" regarding Linux+Perl+MySQL that
you should check first before proceeding:

1. http://mysql.he.net/doc/mysql/en/Per..._problems.html

2. Make sure you have the correct RPM's for MySQL installed. You need
the mysql-shared RPM to get DBD::mysql working.

Regards,
Bill K.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.