perldoc can't display doc

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

  1. #1

    Default perldoc can't display doc

    I'm running Perl 5.8 under cygwin. When I do something like

    perldoc IO::File

    I get the error message

    Ignored /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm: unreadable
    No documentation found for "IO::File".

    Although the file /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm
    is clearly readable.

    When I do a

    perldoc -f open

    I get the error message

    Ignored /usr/lib/perl5/5.8.0/pods/perlfunc.pod: unreadable
    No documentation found for "perlfunc".

    In fact, I can't get at any documentation with perldoc.

    Any suggestions?


    Ronald
    Ronald Fischer Guest

  2. Similar Questions and Discussions

    1. C++ example in perldoc perlxs
      Hi, i'd like to compile and install the C++ example mentioned in "perldoc perlxs". I use perl 5.8 on my Linux system. I've put the whole test...
    2. Redirect perldoc to usb printer
      Paul Kraus wrote: This should work (assuming ActiveState) C:\> perl c:\perl\bin\perldoc.bat -f localtime | command
    3. OT: Redirect perldoc to usb printer
      Kind of off topic. How can you redirect to a usb printer from the shell in windows xp? Its getting really irritating having to perldoc -f...
    4. A suggestion for perldoc
      A lot of GUI programs feature a "tip of the day" box at startup, that actually is mostly annoying, and in fact generally people disable it! OTOH...
    5. root wants to use perldoc
      # perldoc -f my Superuser must not run /usr/bin/perldoc without security audit and taint checks. Gee whiz, what if man(1) did that too? grep, ls?...
  3. #2

    Default Re: perldoc can't display doc

    Ronald Fischer wrote:
    >I'm running Perl 5.8 under cygwin. When I do something like
    >
    >perldoc IO::File
    >
    >I get the error message
    >
    >Ignored /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm: unreadable
    >No documentation found for "IO::File".
    >
    >Although the file /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm
    >is clearly readable.
    ....
    >In fact, I can't get at any documentation with perldoc.
    Check out the file permissions under that file tree. I'm assuming Cygwin
    does at least some attempt in emulating Unix in that regard.

    HTH,
    Bart.
    Bart Lateur Guest

  4. #3

    Default Re: perldoc can't display doc

    Ronald Fischer wrote:
    > I'm running Perl 5.8 under cygwin. When I do something like
    >
    > perldoc IO::File
    >
    > I get the error message
    >
    > Ignored /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm: unreadable
    > No documentation found for "IO::File".
    >
    > Although the file /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm
    > is clearly readable.
    >
    > When I do a
    >
    > perldoc -f open
    >
    > I get the error message
    >
    > Ignored /usr/lib/perl5/5.8.0/pods/perlfunc.pod: unreadable
    > No documentation found for "perlfunc".
    >
    > In fact, I can't get at any documentation with perldoc.
    >
    > Any suggestions?
    >
    >
    > Ronald
    You might want to double-check that the 'perl_manpages' are installed.
    When you run cygwin setup (Select Packages) it is listed under 'Docs'
    category. Not 100% sure, but I don't think it is installed by default.

    HTH - keith

    ko Guest

  5. #4

    Default Re: perldoc can't display doc


    "Ronald Fischer" <ronaldf@eml.cc> wrote in message
    news:219750c.0309080040.2f36d379@posting.google.co m...
    > I'm running Perl 5.8 under cygwin. When I do something like
    >
    > perldoc IO::File
    >
    > I get the error message
    >
    > Ignored /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm: unreadable
    > No documentation found for "IO::File".
    >
    > Although the file /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm
    > is clearly readable.
    >
    > When I do a
    >
    > perldoc -f open
    >
    > I get the error message
    >
    > Ignored /usr/lib/perl5/5.8.0/pods/perlfunc.pod: unreadable
    > No documentation found for "perlfunc".
    >
    > In fact, I can't get at any documentation with perldoc.
    >
    > Any suggestions?

    did you try man IO::File ?
    works for me .. sometimes :)

    thorz


    thorsten schau Guest

  6. #5

    Default Re: perldoc can't display doc

    Bart Lateur <bart.lateur@pandora.be> wrote in message news:<4kgolv4bpk69tj0pvnnsn0c9vvirobve1t@4ax.com>. ..
    > Ronald Fischer wrote:
    >
    > >I'm running Perl 5.8 under cygwin. When I do something like
    > >
    > >perldoc IO::File
    > >
    > >I get the error message
    > >
    > >Ignored /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm: unreadable
    > >No documentation found for "IO::File".
    > Check out the file permissions under that file tree. I'm assuming Cygwin
    > does at least some attempt in emulating Unix in that regard.
    $ ls -l /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm
    -rwx------+ 1 Administ mkgroup_ 3955 Jun 2 15:41
    /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm

    so I tried:

    $ chmod ugo+r /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm
    $ perldoc IO::File
    Error in tempfile() using /XXXXXXXXXX: Parent directory (/) is not
    writable
    at /usr/bin/perldoc line 564

    Then I checked:

    $ ls -ld /
    drwx------+ 8 Administ mkgroup_ 4096 Jun 2 14:25 /

    After doing a

    $ chmod ugo+rwx /

    I can indeed display the docs.

    So you were right in that it had to do with file permissions. Setting
    / to 0777
    is not as bad as it sounds, since this is Windows and the idea of Unix
    groups
    isn't present there anyway.... But I wonder why tempfile() wants to
    create
    his file in /. I thought that, by default, it would use the content of
    the
    environment variable TMP or TEMP (both are set on my system), or
    otherwise
    use /tmp. Any ideas about this?

    Ronald
    Ronald Fischer 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