Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

install Module::Build with cpan make -- NOT OK

by jaime11 (Initiate)
on Nov 09, 2017 at 14:38 UTC ( #1203040=perlquestion: print w/replies, xml ) Need Help??
jaime11 has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am using perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi from a server where I have no admin rights. Perl is being run from: /bin/perl Environment variables: $PERL5LIB, $LD_LIBRARY_PATH, pointing to various directories where I have write and reading permissions $PERL_MM_OPT pointed to another perl installation in a directory where I have write and reading permissions INSTALL_BASE=/dir/apps/libs/perl/ I get an error when I try to run a test installing an application:
Can't locate HTML/TreeBuilder.pm in @INC (@INC contains: various local + directories where I have write and reading permissions + /usr/local/ +share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl + /usr/lib64/perl5 /usr/share/perl5
Try to install HTML::TreeBuilder
cpan HTML::TreeBuilder ... Checksum for /shared/sudlab1/General/apps/perl-5_18_1/cpan/sources/aut +hors/id/C/CJ/CJM/HTML-Tree-5.03.tar.gz ok ---- Unsatisfied dependencies detected during ---- ---- CJM/HTML-Tree-5.03.tar.gz ---- Module::Build [build_requires] Running make test
Try to install Module::Build with cpan:
make: *** [all] Error 2 LEONT/Module-Build-0.4220.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
Loading different gcc doesn't seem to solve it. Thanks in advance.

Replies are listed 'Best First'.
Re: install Module::Build with cpan make -- NOT OK
by Corion (Pope) on Nov 09, 2017 at 15:41 UTC

    I think the "root" cause is that your version of Perl has an old (or no) Module::Build installed and cpan fails to install a newer version.

    Module::Build is used by many other modules to build and install them.

    I think your best approach would be to set up your own private library directory and install all those needed modules there. Likely a good approach to that is to manually install local::lib, potentially following the bootstrapping technique.

    Once you have installed local::lib (and set up the environment variables as they document it there), you can then install HTML::TreeBuilder, which will pull in HTML::Tree which will pull in Module::Build.

Re: install Module::Build with cpan make -- NOT OK
by roboticus (Chancellor) on Nov 09, 2017 at 15:15 UTC

    jaime11:

    Your post is pretty difficult to read. I'd suggest putting code tags (<c> your installation output </c>) around it to make it easier to read.

    It also seems like you've left out a good bit of detail that would make it possible to help you:

    • $PERL5LIB, $LD_LIBRARY_PATH, pointing to various directories where I have write and reading permissions
      OK, what directories are shown?
    • $PERL_MM_OPT pointed to another perl installation in a directory where I have write and reading permissions
      Do you possibly have your environment mangled? Is it possible that your directories are inconsistent, confusing the installer?
    • What is the complete output of cpan HTML::TreeBuilder? It looks like you've cut out all the parts where cpan tells us what the problem(s) are.
      For example, you mention that you try another gcc, but I don't see anything in your post showing that there were any gcc errors or that gcc was used at all.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Re: install Module::Build with cpan make -- NOT OK
by wjw (Priest) on Nov 09, 2017 at 15:21 UTC

    Hi

    Could you maybe put some of that in "<code>" tags and use a few paragragh tags to make that more readable please?

    I have had some issues with installing some modules myself recently, but find this post a bit hard to digest because of the formatting. A little help from you in that regard would be appreciated.

    ...the majority is always wrong, and always the last to know about it...

    A solution is nothing more than a clearly stated problem...

Re: install Module::Build with cpan make -- NOT OK
by Anonymous Monk on Nov 09, 2017 at 15:19 UTC
    Since you have specific reference that TreeBuilder.pm cannot be found, now go look for it in some directory that will be named HTML. It should be in one of the places you named in your environment variables. But also, bear in mind that "using Perl on shared hosting" will produce a lot of Google-hits with meticulous explanations of how to do it correctly. Grab a good one and check what you have done very-carefully against it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1203040]
Front-paged by Corion
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2017-11-22 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (316 votes). Check out past polls.

    Notices?