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

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.
  • Comment on Re^2: Getting error for html2text.pl running to view the perldoc for Wx
  • Download Code

Replies are listed 'Best First'.
Re^3: Getting error for html2text.pl running to view the perldoc for Wx
by Anonymous Monk on Aug 22, 2012 at 09:32 UTC

    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.