Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by Riales (Hermit)
on Aug 21, 2012 at 18:16 UTC ( #988814=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988814]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2018-04-23 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?