can't install dbd::mysql

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yun Guan

    can't install dbd::mysql

    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


  • Bill Karwin

    #2
    Re: can't install dbd::mysql

    Yun Guan wrote:[color=blue]
    > Hello,
    >
    > I have problems installing DBD:mysql on Red Hat Linux 9, either from CPAN,[/color]

    The errors you describe are not familiar to me, but there are two things
    that are kind of "frequent obstacles" regarding Linux+Perl+MySQ L 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.

    Comment

    Working...