What have I done wrong, and how may I fix it?

UPDATE: Duh ... what follows below is pretty much useless. The error message already tells us what $fi is.
It's actually 1 though it should be the fully qualified path to pdldoc.db.
Sorry, I don't have any other brilliant ideas to offer at the moment :-(

I don't exactly know the answer to either question.
I would try changing /usr/lib/x86_64-linux-gnu/perl5/5.30/PDL/Doc.pm from:
while (my $fi = pop @{$this->{File}}) { open IN, $fi or barf "can't open database $fi, scan docs first";
to:
while (my $fi = pop @{$this->{File}}) { print "\$fi: $fi\n"; open IN, $fi or barf "can't open database $fi, scan docs first";
(The last line of the above excerpts is, of course, the "line 468" that's throwing the error.)
Next, re-run pdldoc -a slice which should then tell you what $fi is.

With that change made, on my Windows installations of PDL, it reveals:
$fi: C:/_64/perl526_630/site/lib/PDL/pdldoc.db
which places pdldoc.db in the same directory as Doc.pm, and therefore suggests that you would want to be seeing:
$fi: /usr/lib/x86_64-linux-gnu/perl5/5.30/PDL/pdldoc.db
Where we go from there depends upon the result that you get ... assuming you have the permissions required to edit files in /usr/lib .....

Also, does /usr/lib/x86_64-linux-gnu/perl5/5.30/PDL/pdldoc.db exist ?

UPDATE: When I said "I would try changing /usr/lib/x86_64-linux-gnu/perl5/5.30/PDL/Doc.pm", I meant that's what I would do if I was using a perl in /usr/lib that was throwing that error.
Of course, I would in fact never even use a perl located in that (or any other system) directory.

Cheers,
Rob

In reply to Re: Unable to find PDL/pdldoc.db by syphilis
in thread Unable to find PDL/pdldoc.db by Xilman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.