Professional Web Applications Themes

strange error "Unsuccessful stat on filename " - PERL Miscellaneous

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 ...

  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. #2

    Default Re: strange error "Unsuccessful stat on filename "

    Pitt <randy_changsohu.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]tadmcaugustmail.com[/email] Perl programming
    Fort Worth, Texas
    Tad McClellan Guest

  3. #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

  4. #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" <jwillmorecyberia.com>
    ??????:e0160815.0308141522.239b300cposting.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

  5. #5

    Default Re: strange error "Unsuccessful stat on filename "

    "pitt" <randy_changsohu.com> wrote in message news:<bhi4i8$j79$1mail.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

Similar Threads

  1. "The filename or extension is too long" Error when opening Acrobat 6.0
    By Ray_Quinn@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 4
    Last Post: January 24th, 02:24 PM
  2. <param name="filename" value="file:///C:/...."
    By Metalpez in forum Macromedia Flash Player
    Replies: 1
    Last Post: June 14th, 08:01 AM
  3. Download-Script: strange "[1]." in Filename
    By Kornelius Finkenbein in forum PHP Development
    Replies: 7
    Last Post: November 17th, 02:02 PM
  4. #12029 [Com]: "--with-apxs" can cause the error "MySQL: Unable to save result set in"
    By sietzepost at streetwisedd dot nl in forum PHP Development
    Replies: 1
    Last Post: October 3rd, 09:21 AM
  5. Uploading large files - error "stat failed"
    By Marc in forum PHP Development
    Replies: 0
    Last Post: September 2nd, 05:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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