Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CPAN - ERROR: failed to install HTML::HeadParser

Status
Not open for further replies.

PaulReed

Technical User
Jun 15, 2008
61
US
I'm running on CentOS 3.9. I'm very new at this... I'm installing software and part of the install it Perl Modules being install via CPAN and it goes thru most of them but I'm getting the following error when it goes to install HTML::HeadParser.

Any help would really be appreciated. Thanks...

Running install for module HTML::HeadParser
Running make for G/GA/GAAS/HTML-Parser-3.56.tar.gz
Is already unwrapped into directory /root/.cpan/build/HTML-Parser-3.56
Has already been processed within this session
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
ERROR: failed to install HTML::HeadParser without force, trying to force install
Running install for module HTML::HeadParser
Running make for G/GA/GAAS/HTML-Parser-3.56.tar.gz
Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/HTML-Parser-3.56.tar.gz ok
HTML-Parser-3.56/
HTML-Parser-3.56/t/
HTML-Parser-3.56/t/xml-mode.t
HTML-Parser-3.56/t/threads.t
HTML-Parser-3.56/t/textarea.t
HTML-Parser-3.56/t/filter-methods.t
HTML-Parser-3.56/t/crashme.t
HTML-Parser-3.56/t/handler-eof.t
HTML-Parser-3.56/t/unicode-bom.t
HTML-Parser-3.56/t/argspec-bad.t
HTML-Parser-3.56/t/dtext.t
HTML-Parser-3.56/t/callback.t
HTML-Parser-3.56/t/entities.t
HTML-Parser-3.56/t/argspec.t
HTML-Parser-3.56/t/comment.t
HTML-Parser-3.56/t/declaration.t
HTML-Parser-3.56/t/offset.t
HTML-Parser-3.56/t/handler.t
HTML-Parser-3.56/t/plaintext.t
HTML-Parser-3.56/t/case-sensitive.t
HTML-Parser-3.56/t/cases.t
HTML-Parser-3.56/t/marked-sect.t
HTML-Parser-3.56/t/document.t
HTML-Parser-3.56/t/filter.t
HTML-Parser-3.56/t/tokeparser.t
HTML-Parser-3.56/t/linkextor-rel.t
HTML-Parser-3.56/t/entities2.t
HTML-Parser-3.56/t/skipped-text.t
HTML-Parser-3.56/t/linkextor-base.t
HTML-Parser-3.56/t/default.t
HTML-Parser-3.56/t/headparser.t
HTML-Parser-3.56/t/uentities.t
HTML-Parser-3.56/t/headparser-http.t
HTML-Parser-3.56/t/script.t
HTML-Parser-3.56/t/stack-realloc.t
HTML-Parser-3.56/t/pod.t
HTML-Parser-3.56/t/magic.t
HTML-Parser-3.56/t/options.t
HTML-Parser-3.56/t/attr-encoded.t
HTML-Parser-3.56/t/unicode.t
HTML-Parser-3.56/t/argspec2.t
HTML-Parser-3.56/t/ignore.t
HTML-Parser-3.56/t/largetags.t
HTML-Parser-3.56/t/unbroken-text.t
HTML-Parser-3.56/t/msie-compat.t
HTML-Parser-3.56/t/api_version.t
HTML-Parser-3.56/t/parsefile.t
HTML-Parser-3.56/t/parser.t
HTML-Parser-3.56/t/process.t
HTML-Parser-3.56/t/pullparser.t
HTML-Parser-3.56/eg/
HTML-Parser-3.56/eg/hlc
HTML-Parser-3.56/eg/hanchors
HTML-Parser-3.56/eg/htextsub
HTML-Parser-3.56/eg/htitle
HTML-Parser-3.56/eg/hstrip
HTML-Parser-3.56/eg/hrefsub
HTML-Parser-3.56/eg/hform
HTML-Parser-3.56/eg/hdump
HTML-Parser-3.56/eg/htext
HTML-Parser-3.56/lib/
HTML-Parser-3.56/lib/HTML/
HTML-Parser-3.56/lib/HTML/Entities.pm
HTML-Parser-3.56/lib/HTML/PullParser.pm
HTML-Parser-3.56/lib/HTML/Filter.pm
HTML-Parser-3.56/lib/HTML/TokeParser.pm
HTML-Parser-3.56/lib/HTML/LinkExtor.pm
HTML-Parser-3.56/lib/HTML/HeadParser.pm
HTML-Parser-3.56/util.c
HTML-Parser-3.56/Makefile.PL
HTML-Parser-3.56/hints/
HTML-Parser-3.56/hints/solaris.pl
HTML-Parser-3.56/Parser.pm
HTML-Parser-3.56/TODO
HTML-Parser-3.56/MANIFEST
HTML-Parser-3.56/tokenpos.h
HTML-Parser-3.56/Changes
HTML-Parser-3.56/mkhctype
HTML-Parser-3.56/Parser.xs
HTML-Parser-3.56/mkpfunc
HTML-Parser-3.56/hparser.c
HTML-Parser-3.56/README
HTML-Parser-3.56/hparser.h
HTML-Parser-3.56/typemap
Removing previously used /root/.cpan/build/HTML-Parser-3.56

CPAN.pm: Going to build G/GA/GAAS/HTML-Parser-3.56.tar.gz

Checking if your kit is complete...
Looks good
 
based on the error, it states it failed first but did an auto force install, which seems to have worked fine...at least I don't see any errors after that...
 
Thanks Max1x...

I forgot to mention something, this ends up being and endless loop, what you see above, loops over and over and never stops until I stop it.
 
I just ran it from root and I received the following...


~# cpan -i HTML::HeadParser
Sorry, we have to rerun the configuration dialog for CPAN.pm due to
some missing parameters...

Normally CPAN.pm keeps config variables in memory and changes need to
be saved in a separate 'o conf commit' command to make them permanent
between sessions. If you set the 'auto_commit' option to true, changes
to a config variable are always automatically committed to disk.

<auto_commit>
Always commit changes to config variables to disk? [no]

A Build.PL is run by perl in a separate process. Likewise we run
'./Build' and './Build install' in separate processes. If you have any
parameters you want to pass to the calls, please specify them here.

Typical frequently used settings:

--install_base /home/xxx # different installation directory

<mbuildpl_arg>
Parameters for the 'perl Build.PL' command? []

Parameters for the './Build' command? Setting might be:

--extra_linker_flags -L/usr/foo/lib # non-standard library location

<mbuild_arg>
Your choice: []

Do you want to use a different command for './Build install'? Sudo
users will probably prefer:

su root -c ./Build
or
sudo ./Build
or
/path1/to/sudo -u admin_account ./Build

<mbuild_install_build_command>
or some such. Your choice: [./Build]

Parameters for the './Build install' command? Typical frequently used
setting:

--uninst 1 # uninstall conflicting files

<mbuild_install_arg>
Your choice: []



Please remember to call 'o conf commit' to make the config permanent!

CPAN: Storable loaded ok (v2.06)
Going to read /root/.cpan/Metadata
Database was generated on Sat, 14 Jun 2008 20:07:16 GMT
CPAN: LWP::UserAgent loaded ok (v2.001)
Fetching with LWP:
ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
............................................................................DONE
Fetching with LWP:
ftp://CPAN.mirror.rafal.ca/pub/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Mon, 16 Jun 2008 20:03:21 GMT
............................................................................DONE
Fetching with LWP:
ftp://CPAN.mirror.rafal.ca/pub/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /root/.cpan/Metadata
Running install for module 'HTML::HeadParser'
Running make for G/GA/GAAS/HTML-Parser-3.56.tar.gz

CPAN: checksum security checks disabled because Digest::SHA not installed.
Please consider installing the Digest::SHA module.

HTML-Parser-3.56/
HTML-Parser-3.56/t/
HTML-Parser-3.56/t/xml-mode.t
HTML-Parser-3.56/t/threads.t
HTML-Parser-3.56/t/textarea.t
HTML-Parser-3.56/t/filter-methods.t
HTML-Parser-3.56/t/crashme.t
HTML-Parser-3.56/t/handler-eof.t
HTML-Parser-3.56/t/unicode-bom.t
HTML-Parser-3.56/t/argspec-bad.t
HTML-Parser-3.56/t/dtext.t
HTML-Parser-3.56/t/callback.t
HTML-Parser-3.56/t/entities.t
HTML-Parser-3.56/t/argspec.t
HTML-Parser-3.56/t/comment.t
HTML-Parser-3.56/t/declaration.t
HTML-Parser-3.56/t/offset.t
HTML-Parser-3.56/t/handler.t
HTML-Parser-3.56/t/plaintext.t
HTML-Parser-3.56/t/case-sensitive.t
HTML-Parser-3.56/t/cases.t
HTML-Parser-3.56/t/marked-sect.t
HTML-Parser-3.56/t/document.t
HTML-Parser-3.56/t/filter.t
HTML-Parser-3.56/t/tokeparser.t
HTML-Parser-3.56/t/linkextor-rel.t
HTML-Parser-3.56/t/entities2.t
HTML-Parser-3.56/t/skipped-text.t
HTML-Parser-3.56/t/linkextor-base.t
HTML-Parser-3.56/t/default.t
HTML-Parser-3.56/t/headparser.t
HTML-Parser-3.56/t/uentities.t
HTML-Parser-3.56/t/headparser-http.t
HTML-Parser-3.56/t/script.t
HTML-Parser-3.56/t/stack-realloc.t
HTML-Parser-3.56/t/pod.t
HTML-Parser-3.56/t/magic.t
HTML-Parser-3.56/t/options.t
HTML-Parser-3.56/t/attr-encoded.t
HTML-Parser-3.56/t/unicode.t
HTML-Parser-3.56/t/argspec2.t
HTML-Parser-3.56/t/ignore.t
HTML-Parser-3.56/t/largetags.t
HTML-Parser-3.56/t/unbroken-text.t
HTML-Parser-3.56/t/msie-compat.t
HTML-Parser-3.56/t/api_version.t
HTML-Parser-3.56/t/parsefile.t
HTML-Parser-3.56/t/parser.t
HTML-Parser-3.56/t/process.t
HTML-Parser-3.56/t/pullparser.t
HTML-Parser-3.56/eg/
HTML-Parser-3.56/eg/hlc
HTML-Parser-3.56/eg/hanchors
HTML-Parser-3.56/eg/htextsub
HTML-Parser-3.56/eg/htitle
HTML-Parser-3.56/eg/hstrip
HTML-Parser-3.56/eg/hrefsub
HTML-Parser-3.56/eg/hform
HTML-Parser-3.56/eg/hdump
HTML-Parser-3.56/eg/htext
HTML-Parser-3.56/lib/
HTML-Parser-3.56/lib/HTML/
HTML-Parser-3.56/lib/HTML/Entities.pm
HTML-Parser-3.56/lib/HTML/PullParser.pm
HTML-Parser-3.56/lib/HTML/Filter.pm
HTML-Parser-3.56/lib/HTML/TokeParser.pm
HTML-Parser-3.56/lib/HTML/LinkExtor.pm
HTML-Parser-3.56/lib/HTML/HeadParser.pm
HTML-Parser-3.56/util.c
HTML-Parser-3.56/Makefile.PL
HTML-Parser-3.56/hints/
HTML-Parser-3.56/hints/solaris.pl
HTML-Parser-3.56/Parser.pm
HTML-Parser-3.56/TODO
HTML-Parser-3.56/MANIFEST
HTML-Parser-3.56/tokenpos.h
HTML-Parser-3.56/Changes
HTML-Parser-3.56/mkhctype
HTML-Parser-3.56/Parser.xs
HTML-Parser-3.56/mkpfunc
HTML-Parser-3.56/hparser.c
HTML-Parser-3.56/README
HTML-Parser-3.56/hparser.h
HTML-Parser-3.56/typemap
CPAN: File::Temp loaded ok (v0.13)
Will not use File::Temp, need 0.16
Removing previously used /root/.cpan/build/HTML-Parser-3.56

CPAN.pm: Going to build G/GA/GAAS/HTML-Parser-3.56.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for HTML::parser
cp lib/HTML/PullParser.pm blib/lib/HTML/PullParser.pm
cp lib/HTML/Entities.pm blib/lib/HTML/Entities.pm
cp Parser.pm blib/lib/HTML/Parser.pm
cp lib/HTML/TokeParser.pm blib/lib/HTML/TokeParser.pm
cp lib/HTML/LinkExtor.pm blib/lib/HTML/LinkExtor.pm
cp lib/HTML/HeadParser.pm blib/lib/HTML/HeadParser.pm
cp lib/HTML/Filter.pm blib/lib/HTML/Filter.pm
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap Parser.xs > Parser.xsc && mv Parser.xsc Parser.c
/usr/bin/perl mkhctype >hctype.h
/usr/bin/perl mkpfunc >pfunc.h
gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\"3.56\" -DXS_VERSION=\"3.56\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" -DMARKED_SECTION Parser.c
Parser.xs: In function `dup_pstate':
Parser.xs:290: `CLONEf_JOIN_IN' undeclared (first use in this function)
Parser.xs:290: (Each undeclared identifier is reported only once
Parser.xs:290: for each function it appears in.)
make: *** [Parser.o] Error 1
GAAS/HTML-Parser-3.56.tar.gz
/usr/bin/make -- NOT OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
root@macko ~#
 
go to your build directory or check you Config.pm to see where your modules are being dumped and then unzipped for install.

Try running the make with full path defined on the Makefile.pl and then make test, make install, make clean.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top