Ask a Question related to PERL Miscellaneous, Design and Development.
-
Ronald Fischer #1
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
-
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... -
Redirect perldoc to usb printer
Paul Kraus wrote: This should work (assuming ActiveState) C:\> perl c:\perl\bin\perldoc.bat -f localtime | command -
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... -
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... -
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?... -
Bart Lateur #2
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.Check out the file permissions under that file tree. I'm assuming Cygwin>In fact, I can't get at any documentation with perldoc.
does at least some attempt in emulating Unix in that regard.
HTH,
Bart.
Bart Lateur Guest
-
ko #3
Re: perldoc can't display doc
Ronald Fischer wrote:
You might want to double-check that the 'perl_manpages' are installed.> 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
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
-
thorsten schau #4
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
-
Ronald Fischer #5
Re: perldoc can't display doc
Bart Lateur <bart.lateur@pandora.be> wrote in message news:<4kgolv4bpk69tj0pvnnsn0c9vvirobve1t@4ax.com>. ..
$ ls -l /usr/lib/perl5/5.8.0/cygwin-multi-64int/IO/File.pm> Ronald Fischer wrote:
>> Check out the file permissions under that file tree. I'm assuming Cygwin> >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".
> does at least some attempt in emulating Unix in that regard.
-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



Reply With Quote

