in reply to Getting error for html2text.pl running to view the perldoc for Wx

How did you download html2text.pl? It looks like you didn't install its dependencies. If you use cpan to install modules, it will take care of all the dependencies for you. Checking its prequisites on CPAN, it looks like it only has one:

perl -MCPAN -e 'install Text::Format HTML::TreeBuilder'

Replies are listed 'Best First'.
Re^2: Getting error for html2text.pl running to view the perldoc for Wx
by bedohave9 (Acolyte) on Aug 21, 2012 at 22:48 UTC

    I do have installed both Text::Format, HTML::TreeBuilder, but still getting almost the same error.

    C:\strawberry\html2text-0.003>html2text.pl Can't locate HTML/TreeBuilder.pm in @INC (@INC contains: C:\Users\SPUL +LA~1\perl5\lib\perl5\MSWin32-x64-multi-thread C:\Users\SPULLA~1\perl5 +\lib\perl5/ MSWin32-x64-multi-thread C:\Users\SPULLA~1\perl5\lib\perl5 C:/strawber +ry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib + .) at C:\s trawberry\html2text-0.003\html2text.pl line 94. BEGIN failed--compilation aborted at C:\strawberry\html2text-0.003\htm +l2text.pl line 94.

      I do have installed both Text::Format, HTML::TreeBuilder, but still getting almost the same error.

      Well, that is impossible :) How/where did you install?

        My version of CPAN runs on Ubuntu 16 and I had the same problem you seem to be having. I'm not sure how to fix it for html2text, but I do know how I got lynx runnning on my version of CPAN and the problem was solved.

        From a CPAN prompt run:

        o conf

        Does it show a configuration variable lynx?

        lynx undef

        Then it is easy to fix, I'm pretty sure.

        o conf lynx /usr/bin/lynx

        Then:

        o conf commit

        This will work if lynx is installed at /usr/bin/lynx . Otherwise substitute the right location. /usr/pathto/lynx. Hope it helps.