HTML::TokeParser 无法从 CPAN 安装

HTML::TokeParser not able to install from CPAN

提问人:Pankaj Kumar 提问时间:12/16/2015 最后编辑:Pankaj Kumar 更新时间:12/16/2015 访问量:660

问:

我无法从CPAN安装此软件包。HTML::TokeParser

cpan[6]>   install    HTML::TokeParser


Running install for module 'HTML::TokeParser'


Running make for G/GA/GAAS/HTML-Parser-3.71.tar.gz


  Has already been unwrapped into directory /root/.cpan/build/HTML-Parser-3.71-0zUSqw


Could not make: Unknown error


Running make test
  Can't test with enter code here out successful make

Running make install


  Make had returned bad status, install seems impossible

谁能帮忙?

perl html 解析 cpan

评论

0赞 Jens 12/16/2015
删除并重试/root/.cpan/build/HTML-Parser-3.71-0zUSqw
0赞 Pankaj Kumar 2/14/2017
@jens它奏效了。真的很感激。现在你能告诉我为什么我遇到这个吗?我的系统是新的,只有一些默认安装

答:

-1赞 KBSR 12/16/2015 #1

您可以尝试:

perl -MCPAN -e '安装 HTML::TokeParser'

Download the zipped tar file from one of the following:

http://search.cpan.org/~gaas/HTML-Parser-3.71/lib/HTML/TokeParser.pm
or
search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-3.71.tar.gz

Unzip the module as follows or use winzip:

       tar -zxvf HTML-Parser-3.71.tar.gz

The module can be installed using the standard Perl procedure:

    perl Makefile.PL
    make
    make test
    make install    # You may need to be root
    make clean      # or make realclean