mldvx4 has asked for the wisdom of the Perl Monks concerning the following question:

I've tried adding a module with APT:

# apt-get install libhtml-wikiconverter-markdown-perl

and it seems to have put things in the right place

# locate HTML | grep WikiConverter
/usr/share/man/man3/HTML::WikiConverter::Markdown.3pm.gz
/usr/share/perl5/HTML/WikiConverter
/usr/share/perl5/HTML/WikiConverter/Markdown.pm
/var/cache/man/cat3/HTML::WikiConverter::Markdown.3pm.gz

Yet when I try the following:

perl -e 'use HTML::WikiConverter;'

I get this error:
Can't locate HTML/WikiConverter.pm in @INC (you may need to install the HTML::WikiConverter module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at -e line 1.

The manual says:

SYNOPSIS use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => 'Markdown' ); print $wc->html2wiki( $html );

Replies are listed 'Best First'.
Re: Can't locate module added via APT
by ikegami (Patriarch) on Oct 23, 2017 at 04:14 UTC

    You installed HTML::WikiConverter::Markdown, but you said use HTML::WikiConverter;

    Either load the module you installed, or install the module you are trying to load.

      Ah, HTML::WikiConverter::Markdown extends HTML::WikiConverter. So it's the latter: Install the module you are trying to use, HTML::WikiConverter.

      HTML::WikiConverter is listed as a dependency of HTML::WikiConverter::Markdown, so it should have been installed. But whoever made the `apt` package screwed up.

        Thanks. It may take a long time to get upsteam to fix it. Is there a safe way to do a work-around?

        Edit: I found the package. All set!