nferraz/st

INSTALL, Makefile.PL

rickhull opened this issue · 8 comments

$ perl Makefile.PL

Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 4.
BEGIN failed--compilation aborted at Makefile.PL line 4.

$ perl --version

This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi

resolved in my case with:
yum install perl-devel

...
Dependency Installed:
  gdbm-devel.x86_64 0:1.10-8.el7                      libdb-devel.x86_64 0:5.3.21-17.el7_0.1            
  perl-ExtUtils-Install.noarch 0:1.58-285.el7         perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7       
  perl-ExtUtils-Manifest.noarch 0:1.61-244.el7        perl-ExtUtils-ParseXS.noarch 1:3.18-2.el7         
  pyparsing.noarch 0:1.5.6-9.el7                      systemtap-sdt-devel.x86_64 0:2.6-10.el7_1         

Complete!

$ perl Makefile.PL

Warning: prerequisite Test::More 0 not found.
Writing Makefile for App::St

$ make

cp lib/App/St.pm blib/lib/App/St.pm
cp script/st blib/script/st
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/st
Manifying blib/man1/st.1
Manifying blib/man3/App::St.3pm

$ make test

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-use.t .......... Can't locate Test/More.pm in @INC (@INC contains: /home/rwh/git/st/blib/lib /home/rwh/git/st/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/01-use.t line 6.
BEGIN failed--compilation aborted at t/01-use.t line 6.
t/01-use.t .......... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/02-new.t .......... Can't locate Test/More.pm in @INC (@INC contains: /home/rwh/git/st/blib/lib /home/rwh/git/st/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/02-new.t line 6.
BEGIN failed--compilation aborted at t/02-new.t line 6.
t/02-new.t .......... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/03-validate.t ..... Can't locate Test/More.pm in @INC (@INC contains: /home/rwh/git/st/blib/lib /home/rwh/git/st/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/03-validate.t line 6.
BEGIN failed--compilation aborted at t/03-validate.t line 6.
t/03-validate.t ..... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/04-process.t ...... Can't locate Test/More.pm in @INC (@INC contains: /home/rwh/git/st/blib/lib /home/rwh/git/st/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/04-process.t line 6.
BEGIN failed--compilation aborted at t/04-process.t line 6.
t/04-process.t ...... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/05-basic-stats.t .. Can't locate Test/More.pm in @INC (@INC contains: /home/rwh/git/st/blib/lib /home/rwh/git/st/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/05-basic-stats.t line 6.
BEGIN failed--compilation aborted at t/05-basic-stats.t line 6.
t/05-basic-stats.t .. Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/05-format.t ....... Can't locate Test/More.pm in @INC (@INC contains: /home/rwh/git/st/blib/lib /home/rwh/git/st/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/05-format.t line 6.
BEGIN failed--compilation aborted at t/05-format.t line 6.
t/05-format.t ....... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/06-percentile.t ... Can't locate Test/More.pm in @INC (@INC contains: /home/rwh/git/st/blib/lib /home/rwh/git/st/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/06-percentile.t line 6.
BEGIN failed--compilation aborted at t/06-percentile.t line 6.
t/06-percentile.t ... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/06-quantiles.t .... Can't locate Test/More.pm in @INC (@INC contains: /home/rwh/git/st/blib/lib /home/rwh/git/st/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/06-quantiles.t line 6.
BEGIN failed--compilation aborted at t/06-quantiles.t line 6.
t/06-quantiles.t .... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/07-result.t ....... Can't locate Test/More.pm in @INC (@INC contains: /home/rwh/git/st/blib/lib /home/rwh/git/st/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/07-result.t line 6.
BEGIN failed--compilation aborted at t/07-result.t line 6.
t/07-result.t ....... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 

Test Summary Report
-------------------
t/01-use.t        (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/02-new.t        (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/03-validate.t   (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/04-process.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/05-basic-stats.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/05-format.t     (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/06-percentile.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/06-quantiles.t  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/07-result.t     (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=9, Tests=0,  0 wallclock secs ( 0.03 usr  0.01 sys +  0.03 cusr  0.01 csys =  0.08 CPU)
Result: FAIL
Failed 9/9 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 2

$ yum install perl-CPAN

...
Dependency Installed:
  perl-Digest.noarch 0:1.17-245.el7                    perl-Digest-SHA.x86_64 1:5.85-3.el7              
  perl-local-lib.noarch 0:1.008010-3.el7              

Complete!

$ perl Makefile.PL

Warning: prerequisite Test::More 0 not found.
Writing Makefile for App::St

$ cpan

...
Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes] 
Trying to fetch a mirror list from the Internet
Fetching with HTTP::Tiny:
http://www.perl.org/CPAN/MIRRORED.BY

Looking for CPAN mirrors near you (please be patient)
Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /home/rwh/git/st) at /usr/share/perl5/Net/Ping.pm line 313.

This install process is feeling pretty garbage. I understand that you're expecting your users to probably have Perl fully set up. You may want to make that clear on your github README.

You should also have a list of prerequisite modules / etc. Making your users stumble upon them leaves a bad first impression.

I'm switching gears to try installing https://github.com/dpmcmlxxvi/clistats

Hi,

Which distro are you using?

On Wed, Sep 9, 2015 at 10:11 PM, Rick Hull notifications@github.com wrote:

$ yum install perl-CPAN

...
Dependency Installed:
perl-Digest.noarch 0:1.17-245.el7 perl-Digest-SHA.x86_64 1:5.85-3.el7
perl-local-lib.noarch 0:1.008010-3.el7

Complete!

$ perl Makefile.PL

Warning: prerequisite Test::More 0 not found.
Writing Makefile for App::St

$ cpan

...
Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes]
Trying to fetch a mirror list from the Internet
Fetching with HTTP::Tiny:http://www.perl.org/CPAN/MIRRORED.BY

Looking for CPAN mirrors near you (please be patient)
Can't locate Time/HiRes.pm in @inc (@inc contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /home/rwh/git/st) at /usr/share/perl5/Net/Ping.pm line 313.

This install process is feeling pretty garbage. I understand that you're
expecting your users to probably have Perl fully set up. You may want to
make that clear on your github README.


Reply to this email directly or view it on GitHub
#16 (comment).

Nelson Ferraz

Thanks for the quick response!

CentOS Linux release 7.0.1406 (Core)

Test::More is only required for tests; you can skip this step and proceed
to:

sudo make install

On Wed, Sep 9, 2015 at 10:20 PM, Rick Hull notifications@github.com wrote:

Thanks for the quick response!

CentOS Linux release 7.0.1406 (Core)


Reply to this email directly or view it on GitHub
#16 (comment).

Nelson Ferraz

Works, thanks! I'd still suggest updating your INSTALL file, and probably add an Install / Prereqs section to README.md.