http://qs1969.pair.com?node_id=347439

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I have read the install documentation for DBD::mysql and there is nothing about this error ...
perl Makefile.PL I will use the following settings for compiling and testing: cflags (mysql_config) = -I/usr/local/mysql/include -mcpu=pent +iumpro libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient +-lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_fi +les -lnss_dns -lresolv nocatchstderr (default ) = 0 nofoundrows (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'. Unsuccessful stat on filename containing newline at /usr/lib/perl5/5.8 +.0/ExtUtils/Liblist/Kid.pm line 97.
Does anyone here know what I am doing wrong?

Replies are listed 'Best First'.
Re: Can't install DBD::mysql on redhat 9
by vroom (His Eminence) on Apr 22, 2004 at 18:23 UTC
    Looks like the LANG problem on RedHat 9. Setting LANG=C should fix the problem.

    Some links related to your specific problem: The problem and The response

    More general information on RedHat 9's problems with LANG and Perl module installation. Here and on Perl 5 porters

      That did the trick! Thanks much!
Re: Can't install DBD::mysql on redhat 9
by ScooterQ (Pilgrim) on Apr 22, 2004 at 18:19 UTC
    /me scurries off and finds where he's answered this question before.... cut... paste...
    RH9 caused more than a few problems for me with a number of modules until I edited my /etc/sysconfig/i18n file. Here's mine:
    #LANG="en_US.UTF-8" LANG="en_US" SUPPORTED="en_US.UTF-8:en_US:en" SYSFONT="latarcyrheb-sun16"
    It looks like some modules (like CPAN!) don't like that UTF-8. If you don't want to monkey with your system-wide locale setting, just type "export LANG=en_US" and then try your install again.
Re: Can't install DBD::mysql on redhat 9
by leriksen (Curate) on Apr 23, 2004 at 04:36 UTC
    This issue also causes Tk to abort but in a different way, whilst generating the C bindings.

    See this bug report for more details of RH and Perls UTF8 issues

    +++++++++++++++++
    #!/usr/bin/perl
    use warnings;use strict;use brain;