Redhat 9, MySQL 4 and DBD::mysql

In attempting to install Bugzilla on a Redhat 9 system, with MySQL 4.0.13 RPMs installed I ran into some trouble. I wanted to take the easy way out and use ‘perl -MCPAN -e “install Bundle::Bugzilla” to make sure I had all the right perl modules to get bugzilla up and running, but for some reason DBD::mysql wouldn’t compile, the problem appears to have been related to the default LANG setting on RH9 which wasn’t handled well by the DBD::mysql build process. The solution is simply “unset LANG; perl Makefile.PL; make”

I was able to track this down in the perl.dbi.users newsgroup, here I have also put the complete text of the posting in the extended part of this entry entry. http://nntp.x.perl.org/group/perl.dbi.users/17822: Newsgroups: perl.dbi.users Date: Tue, 15 Apr 2003 09:29:24 +0200 (CEST) To: Rudy Lippan <rlippan[at]remotelinux.com> cc: dbi-users[at]perl.org Subject: Re: DBD::mysql and RedHat 9 Message-ID: Pine.LNX.4.21.0304150921550.13531-100000@highgate.kerbero.com From: sguazt[at]kerbero.com (Marco Guazzone) References: Pine.LNX.4.44.0304141319300.29828-100000@elfride.ineffable.net

Yesssss!!!!!! It works!!! Thank you very much!! But, finally, what is it the wrong side? Is it the perl-RH9 version? However some packages did compile well even if the LANG var was setted. [on my machine I have LANG=en_US.UTF-8] With the perl-RH8 version I hadn’t this problems!

Regards, Marco Guazzone

On Mon, 14 Apr 2003, Rudy Lippan wrote:

On Mon, 14 Apr 2003, Marco Guazzone wrote:

Hi, I’ve just installed RH 9 on my laptop; then I’ve downloaded the mysql 4.0.12 binary distribution from www.mysql.com and the DBI package and installed them. OK! Then I’ve tried to install DBD::mysql 2.1026 but I’ve got these errors:

perl Makefile.PL … make Makefile:89: *** missing separator. Stop.

Try this:

unset LANG; perl Makefile.PL; make.

Later,

Rudy

12 Responses to “Redhat 9, MySQL 4 and DBD::mysql”

  1. Thomas Lee says:

    Cheers, I was wondering what was up – thought I was going crazy :)

    • TL
  2. Bruce Takenaka says:

    Thanks! Ran into this and was wondering what was up. Saved me time and aggrevation!

    –BT

  3. david says:

    jeeez, what a sanity-saver! shall I pry my lips off your boots now?

  4. RIchard Bird says:

    Thanks… stumbled upon your page via Google. Did the trick.

  5. James Eberhardt says:

    Beautiful. Spent a day and a half trying to get this to work. Thanks for your post.

  6. Matt says:

    Thanks! You just saved me a lot of pain.

  7. bturnip says:

    I found this site by searching for the particular error that was driving me nuts. Thanks!

  8. Hubert says:

    Oh hell yeah. This has helped me more than anyone will ever know. Thanks everyone!

    -Hubert

  9. Winston Smith says:

    THAAAAAAAAAAAAAAAAAAAAAAAANK YOU!!

  10. nick says:

    I’ve been beating my head against the wall with this one for two days. thanks dude! nick

  11. Mark HB says:

    THANK YOU!!!!

  12. Mike says:

    It doesn’t hurt to leave another huge thanks! on this long list ;)