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

I try and install DBD-mysql-2.9003 and after "perl Makefile.PL" I get this:

I will use the following settings for compiling and testing: cflags (mysql_config) = -I'/usr/include/mysql' libs (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz -l +crypt -lnsl -lm 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.
So I go to Kid.pm, and line 97 says:
if (@fullname =
and line 98 is:
$self->lsdir($thispth,"^\Qlib$thislib.$so.\E[0-9]+")){
So I combine them so line 97 now reads:
if (@fullname = $self->lsdir($thispth,"^\Qlib$thislib.$so.\E[0-9]+")){
but still doesn't work, I get the same errors, anyone know what's wrong?

Thanks

janitored by ybiC: Balanced <code> tags around code lines near bottom

Replies are listed 'Best First'.
Re: Installing DBD-mysql-2.9003
by matija (Priest) on Apr 04, 2004 at 05:17 UTC
    Your problem wasn't that the line 97 contained a newline, it was that one of the variables ($thispth,$thislib,$so) contained a newline.

    The question is, how did the newline get there? Do any of the lib directories contain a filename that has a newline in it's name?