strange error "Unsuccessful stat on filename "

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default Re: strange error "Unsuccessful stat on filename "

    Pitt wrote:
    >
    > Hi,
    > I get such a error
    > Unsuccessful stat on filename containing newline at
    > /usr/local/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm line 2775
    >
    > when i install a module .
    >
    > I use HP-UX IA64
    > i wouder does the file MM_Unix.pm contains some characters which the HP-UX
    > does not recognise or Perl in HP-UX
    > does not know.
    Based solely on the error message (don't have Unix
    system to verify), I think this::

    MM_Unix.pm line 2775 is the line of Perl code that
    was executing when it found a newline in a DATA ITEM
    being passed to "stat" as a filename. The message
    does NOT indicate anything wrong in MM_Unix.pm.

    You need to see just what that data item was that
    was being passed to "stat" as a filename. It's
    probably a string that didn't get "chomp"ed.

    Again, I don't have a Unix system to verify this on,
    but it makes sense to me from the wording of the
    error message.

    Mike
    Michael P. Broida Guest

  2. Similar Questions and Discussions

    1. "The filename or extension is too long" Error when opening Acrobat 6.0
      I get the same error. It just hangs at the splash screen, taking 100% CPU and then after about an hour I get that error. When I click ok, I get a...
    2. <param name="filename" value="file:///C:/...."
      Hello, got a problem with the next code trying to load the swf from the client pc: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"...
    3. open "filename.txt" for input not working
      I'm working on migrating an Classic ASP/VB6 COM application from an NT Server with IIS<6 to an virtual machine running Windows Server 2003 and IIS...
    4. Download-Script: strange "[1]." in Filename
      Hello folks! I've got a strange problem with my download-script in conjunction with M$ internet explorer, if the filename I want to link to...
    5. Uploading large files - error "stat failed"
      Hello, I have a page where i can upload binary file (using the HTML input type=file approach). This works fine for relatively small files...
  3. #2

    Default Re: strange error "Unsuccessful stat on filename "

    Pitt <randy_chang@sohu.com> wrote:
    > Unsuccessful stat on filename containing newline at

    Did you look up that message in perldiag.pod?


    =item Unsuccessful %s on filename containing newline

    (W newline) A file operation was attempted on a filename, and that
    operation failed, PROBABLY because the filename contained a newline,
    PROBABLY because you forgot to chomp() it off. See L<perlfunc/chomp>.


    --
    Tad McClellan SGML consulting
    [email]tadmc@augustmail.com[/email] Perl programming
    Fort Worth, Texas
    Tad McClellan Guest

  4. #3

    Default Re: strange error "Unsuccessful stat on filename "

    > Hi,
    > I get such a error
    > Unsuccessful stat on filename containing newline at
    > /usr/local/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm line 2775
    >
    > when i install a module .
    >
    > I use HP-UX IA64
    > i wouder does the file MM_Unix.pm contains some characters which the HP-UX
    > does not recognise or Perl in HP-UX
    > does not know.
    What module are you trying to install? How are you installing it?
    Have you had trouble installing other modules?

    At first glance, it looks like someone may have made a mistake in
    creating the Makefile.PL file for this module. It may not be Perl
    or the OS that's at fault, but the mdoule.

    Jim
    James Willmore Guest

  5. #4

    Default Re: strange error "Unsuccessful stat on filename "

    I got the error when i install Compress::zlib
    when run "perl Makefile.PL"
    there two statement as following:

    "Unsuccessful stat on filename containing newline at
    /usr/local/lib/perl5/5.8.0/IA64.ARCHREV_0/Cwd.pm line 213.
    Parsing config.in...
    Looks Good.
    Up/Downgrade complete.
    Unsuccessful stat on filename containing newline at
    /usr/local/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm line 2775.
    WARNING: CAPI is not a known parameter.
    Writing Makefile for zlib
    Writing Makefile for Compress::Zlib

    "
    It seems the "Unsuccessful stat..." does not lead errors.
    another question is that in make file ,the CC is defined to gcc ,but i have
    no gcc in system ,why they do so?

    "James Willmore" <jwillmore@cyberia.com>
    ??????:e0160815.0308141522.239b300c@posting.google .com...
    > > Hi,
    > > I get such a error
    > > Unsuccessful stat on filename containing newline at
    > > /usr/local/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm line 2775
    > >
    > > when i install a module .
    > >
    > > I use HP-UX IA64
    > > i wouder does the file MM_Unix.pm contains some characters which the
    HP-UX
    > > does not recognise or Perl in HP-UX
    > > does not know.
    >
    > What module are you trying to install? How are you installing it?
    > Have you had trouble installing other modules?
    >
    > At first glance, it looks like someone may have made a mistake in
    > creating the Makefile.PL file for this module. It may not be Perl
    > or the OS that's at fault, but the mdoule.
    >
    > Jim

    pitt Guest

  6. #5

    Default Re: strange error "Unsuccessful stat on filename "

    "pitt" <randy_chang@sohu.com> wrote in message news:<bhi4i8$j79$1@mail.cn99.com>...
    > I got the error when i install Compress::zlib
    > when run "perl Makefile.PL"
    > there two statement as following:
    >
    > "Unsuccessful stat on filename containing newline at
    > /usr/local/lib/perl5/5.8.0/IA64.ARCHREV_0/Cwd.pm line 213.
    > Parsing config.in...
    > Looks Good.
    > Up/Downgrade complete.
    > Unsuccessful stat on filename containing newline at
    > /usr/local/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm line 2775.
    > WARNING: CAPI is not a known parameter.
    > Writing Makefile for zlib
    > Writing Makefile for Compress::Zlib
    >
    > "
    > It seems the "Unsuccessful stat..." does not lead errors.
    > another question is that in make file ,the CC is defined to gcc ,but i have
    > no gcc in system ,why they do so?
    To change the compiler setting for the makefile, type the following:

    perl Makefile.PL CC=<your compiler> LD=<your linker>

    HOWEVER, you should find out what Perl was built with. Type:

    perl -V

    This will give you all the various options, directories, compiler,
    etc. that was used to build Perl. If you got a package instead of
    building Perl yourself, the producers of the package may have used the
    gcc compiler. I ran into a similar issue using Solaris at work. The
    admin later installed the gcc compiler and all was right after that.
    You may not want to go that route, but life appears to be so much
    easier if you do.

    You're getting a CAPI warning, but it doesn't say it's harmless. I'm
    not sure if using a different compiler, or setting your compiler
    option while building the makefile will solve this. You'll have to
    investigate this further or perhaps someone else knows what that's
    refering to.

    As far as why that's the default ... I defer to others who know the
    in's and out's of Perl much better than myself. I have only opinions
    about it, but they may be very far off base.

    HTH

    Jim
    James Willmore Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139