LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cpan2tgz error on installing module: Failed to find module: build_requires (https://www.linuxquestions.org/questions/slackware-14/cpan2tgz-error-on-installing-module-failed-to-find-module-build_requires-695575/)

pwc101 01-07-2009 08:50 AM

cpan2tgz error on installing module: Failed to find module: build_requires
 
I'm trying to install a module called HTML::Entities using cpan2tgz on a fresh install of Slackware 12.2. I've built cpan2tgz from the SlackBuild on SlackBuilds.org and completed the configuration when first running cpan2tgz (the only odd thing there was that I didn't have a program called applypatch anywhere on my install to input when asked for it...).

When trying to install the HTML::Entities module using cpan2tgz HTML::Entities, I get the following:
Code:

root@slack:~# cpan2tgz HTML::Entities
CPAN: Term::ANSIColor loaded ok (v1.12)
CPAN: Storable loaded ok (v2.18)
Going to read /root/.cpan/Metadata
  Database was generated on Tue, 06 Jan 2009 02:28:57 GMT
CPAN: Data::Dumper loaded ok (v2.121_14)
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs'
CPAN: Digest::SHA loaded ok (v5.45)

  CPAN: Module::Signature security checks disabled because Module::Signature
  not installed.  Please consider installing the Module::Signature module.
  You may also need to be able to connect over the Internet to the public
  keyservers like pgp.mit.edu (port 11371).

CPAN: Time::HiRes loaded ok (v1.9711)
CPAN: Compress::Zlib loaded ok (v2.008)
Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/HTML-Parser-3.59.tar.gz ok
HTML-Parser-3.59/
HTML-Parser-3.59/Changes
HTML-Parser-3.59/eg/
HTML-Parser-3.59/eg/hanchors
HTML-Parser-3.59/eg/hdump
HTML-Parser-3.59/eg/hform
HTML-Parser-3.59/eg/hlc
HTML-Parser-3.59/eg/hrefsub
HTML-Parser-3.59/eg/hstrip
HTML-Parser-3.59/eg/htext
HTML-Parser-3.59/eg/htextsub
HTML-Parser-3.59/eg/htitle
HTML-Parser-3.59/hints/
HTML-Parser-3.59/hints/solaris.pl
HTML-Parser-3.59/hparser.c
HTML-Parser-3.59/hparser.h
HTML-Parser-3.59/lib/
HTML-Parser-3.59/lib/HTML/
HTML-Parser-3.59/lib/HTML/Entities.pm
HTML-Parser-3.59/lib/HTML/Filter.pm
HTML-Parser-3.59/lib/HTML/HeadParser.pm
HTML-Parser-3.59/lib/HTML/LinkExtor.pm
HTML-Parser-3.59/lib/HTML/PullParser.pm
HTML-Parser-3.59/lib/HTML/TokeParser.pm
HTML-Parser-3.59/Makefile.PL
HTML-Parser-3.59/MANIFEST
HTML-Parser-3.59/META.yml
HTML-Parser-3.59/mkhctype
HTML-Parser-3.59/mkpfunc
HTML-Parser-3.59/Parser.pm
HTML-Parser-3.59/Parser.xs
HTML-Parser-3.59/README
HTML-Parser-3.59/t/
HTML-Parser-3.59/t/api_version.t
HTML-Parser-3.59/t/argspec-bad.t
HTML-Parser-3.59/t/argspec.t
HTML-Parser-3.59/t/argspec2.t
HTML-Parser-3.59/t/attr-encoded.t
HTML-Parser-3.59/t/callback.t
HTML-Parser-3.59/t/case-sensitive.t
HTML-Parser-3.59/t/cases.t
HTML-Parser-3.59/t/comment.t
HTML-Parser-3.59/t/crashme.t
HTML-Parser-3.59/t/declaration.t
HTML-Parser-3.59/t/default.t
HTML-Parser-3.59/t/document.t
HTML-Parser-3.59/t/dtext.t
HTML-Parser-3.59/t/entities.t
HTML-Parser-3.59/t/entities2.t
HTML-Parser-3.59/t/filter-methods.t
HTML-Parser-3.59/t/filter.t
HTML-Parser-3.59/t/handler-eof.t
HTML-Parser-3.59/t/handler.t
HTML-Parser-3.59/t/headparser-http.t
HTML-Parser-3.59/t/headparser.t
HTML-Parser-3.59/t/ignore.t
HTML-Parser-3.59/t/largetags.t
HTML-Parser-3.59/t/linkextor-base.t
HTML-Parser-3.59/t/linkextor-rel.t
HTML-Parser-3.59/t/magic.t
HTML-Parser-3.59/t/marked-sect.t
HTML-Parser-3.59/t/msie-compat.t
HTML-Parser-3.59/t/offset.t
HTML-Parser-3.59/t/options.t
HTML-Parser-3.59/t/parsefile.t
HTML-Parser-3.59/t/parser.t
HTML-Parser-3.59/t/plaintext.t
HTML-Parser-3.59/t/pod.t
HTML-Parser-3.59/t/process.t
HTML-Parser-3.59/t/pullparser.t
HTML-Parser-3.59/t/script.t
HTML-Parser-3.59/t/skipped-text.t
HTML-Parser-3.59/t/stack-realloc.t
HTML-Parser-3.59/t/textarea.t
HTML-Parser-3.59/t/threads.t
HTML-Parser-3.59/t/tokeparser.t
HTML-Parser-3.59/t/uentities.t
HTML-Parser-3.59/t/unbroken-text.t
HTML-Parser-3.59/t/unicode-bom.t
HTML-Parser-3.59/t/unicode.t
HTML-Parser-3.59/t/xml-mode.t
HTML-Parser-3.59/TODO
HTML-Parser-3.59/tokenpos.h
HTML-Parser-3.59/typemap
HTML-Parser-3.59/util.c
CPAN: File::Temp loaded ok (v0.18)
Warning (usually harmless): 'YAML' not installed, will not store persistent state


Processing HTML::Entities...

Running make for G/GA/GAAS/HTML-Parser-3.59.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store persistent state

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


Checking if your kit is complete...
Looks good
Writing Makefile for HTML::Parser
Could not read '/root/.cpan/build/HTML-Parser-3.59-ZadaaQ/META.yml'. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
----      GAAS/HTML-Parser-3.59.tar.gz      ----
    HTML::Tagset [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

handling 2 dependencies for HTML::Entities: build_requires, requires

Strange distribution name [build_requires]
root@slack:~#

If I try to build any other module, I end up with the same error. I had no problems installing any modules on 12.1, but haven't succeeded in getting any built using cpan2tgz on 12.2 (I've tried two machines with clean installs).

Any thoughts?

Thanks.

Didier Spaier 01-07-2009 10:37 AM

Please send the full output of "/path_to/cpan2tgz.Slackbuild" command

pwc101 01-07-2009 10:59 AM

Quote:

Originally Posted by Didier Spaier (Post 3399997)
Please send the full output of "/path_to/cpan2tgz.Slackbuild" command

http://slackbuilds.org/slackbuilds/1...tgz.SlackBuild

I've since discovered that SlackBuilds.org have build scripts for all the modules I required (HTML::Entities and HTML::Cookies, as well as their dependencies), so I don't need cpan2tgz at the moment as the script I wanted to work is now satisfied!

For future information, I needed to build the following from SlackBuilds.org:

Compress-Raw-Zlib-2.011
Compress-Zlib-2.011
IO-Compress-Base-2.011
IO-Compress-Zlib-2.011
libwww-perl-5.819
perl-extutils-cbuilder-0.24
perl-extutils-parsexs-2.19
perl-html-parser-3.56
perl-html-tagset-3.20
perl-module-build-0.30
yaml-0.66 (not strictly necessary)

Didier Spaier 01-07-2009 11:20 AM

Sorry, I meant the output of command you issue to build the cpan2tgz package using the SlackBuild.

Someday I will try to learn English :o

Happy you got all you needed anyway.

pwc101 01-08-2009 03:56 AM

Quote:

Originally Posted by Didier Spaier (Post 3400045)
Sorry, I meant the output of command you issue to build the cpan2tgz package using the SlackBuild.

Someday I will try to learn English :o

Happy you got all you needed anyway.

No, it's my fault, I misread your post. Still, it's all sorted now, so it doesn't matter! :)

dunric 01-08-2009 04:22 AM

Because there are some changes in CPAN API in the new Perl 5.10.0 that comes with Slackware 12.2, you have to use updated version of cpan2tgz also.
The latest cpan2tgz version is 0.6.5 .

pwc101 01-08-2009 05:24 AM

Quote:

Originally Posted by dunric (Post 3400916)
Because there are some changes in CPAN API in the new Perl 5.10.0 that comes with Slackware 12.2, you have to use updated version of cpan2tgz also.
The latest cpan2tgz version is 0.6.5 .

That makes sense, I suppose. I was just using SlackBuilds.org for all my needs, but I'll email the SlackBuilds.org cpan2tgz SlackBuild maintainer to see if the version can be upgraded so it works with 12.2.

Thanks.


All times are GMT -5. The time now is 03:52 PM.