← Back to team overview

sandbox-developers team mailing list archive

Re: cpan install fails on fedora 14 64 bit

 

Hi Diego,
Thanks for the report.
I had, in fact, the same error on CentOS 6. The main reason is that make and
Test::More (which are installed by default in previous versions) now need to
be installed explicitly.

There is, however, another problem, and this is my fault, because I
recommended in the docs to install using
sudo cpan MySQL::Sandbox

This will have the side effect of installing the sandbox with a
$HOME/sandboxes file with root privileges. If you install this way, you
won't be able to create any sandbox after that. The correct sequence is
$ sudo su -
# cpan MySQL::Sandbox

But make sure that both make and the test modules are installed.

Cheers

Giuseppe


On Mon, Aug 22, 2011 at 10:05 PM, Diego Medina <diego@xxxxxxxxxxxxx> wrote:

> Hi,
>
> I got a new fedora 14 laptop and I tried to install the sandbox using
> cpan, I tried this under my regular user and also under root, and it
> fails both ways.
>
> This is what I do:
>
>
> sudo yum install -y cpan
>
> <this goes well>
>
> cpan
>
> cpan[4]> install MySQL::Sandbox
> Going to read '/home/wizard/.cpan/Metadata'
>  Database was generated on Mon, 22 Aug 2011 01:33:37 GMT
> Running install for module 'MySQL::Sandbox'
> Running make for G/GM/GMAX/MySQL-Sandbox-3.0.17.tar.gz
> Checksum for
> /home/wizard/.cpan/sources/authors/id/G/GM/GMAX/MySQL-Sandbox-3.0.17.tar.gz
> ok
> Scanning cache /home/wizard/.cpan/build for sizes
>
> ............................................................................DONE
>
>  CPAN.pm: Going to build G/GM/GMAX/MySQL-Sandbox-3.0.17.tar.gz
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for MySQL::Sandbox
> Could not read
> '/home/wizard/.cpan/build/MySQL-Sandbox-3.0.17-Qvi1XF/META.yml'.
> Falling back to other methods to determine prerequisites
> cp lib/MySQL/Sandbox/Scripts.pm blib/lib/MySQL/Sandbox/Scripts.pm
> cp lib/MySQL/Sandbox/Recipes.pm blib/lib/MySQL/Sandbox/Recipes.pm
> cp lib/MySQL/Sandbox.pm blib/lib/MySQL/Sandbox.pm
> cp bin/msandbox blib/script/msandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/msandbox
> cp bin/make_replication_sandbox blib/script/make_replication_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_replication_sandbox
> cp bin/make_multiple_sandbox blib/script/make_multiple_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_multiple_sandbox
> cp bin/test_sandbox blib/script/test_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/test_sandbox
> cp bin/make_sandbox blib/script/make_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_sandbox
> cp bin/make_sandbox_from_installed blib/script/make_sandbox_from_installed
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_sandbox_from_installed
> cp bin/low_level_make_sandbox blib/script/low_level_make_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/low_level_make_sandbox
> cp bin/make_multiple_custom_sandbox
> blib/script/make_multiple_custom_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_multiple_custom_sandbox
> cp bin/sb blib/script/sb
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sb
> cp bin/sbtool blib/script/sbtool
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sbtool
> cp bin/make_sandbox_from_source blib/script/make_sandbox_from_source
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_sandbox_from_source
> Manifying blib/man3/MySQL::Sandbox::Scripts.3pm
> Manifying blib/man3/MySQL::Sandbox::Recipes.3pm
> Manifying blib/man3/MySQL::Sandbox.3pm
>  GMAX/MySQL-Sandbox-3.0.17.tar.gz
>  /usr/bin/make -- OK
> 'YAML' not installed, will not store persistent state
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/01_modules.t ...................... Can't locate Test/More.pm in
> @INC (@INC contains:
> /home/wizard/.cpan/build/MySQL-Sandbox-3.0.17-Qvi1XF/blib/lib
> /home/wizard/.cpan/build/MySQL-Sandbox-3.0.17-Qvi1XF/blib/arch
> /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5
> /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5
> /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at
> t/01_modules.t line 3.
> BEGIN failed--compilation aborted at t/01_modules.t line 3.
> t/01_modules.t ...................... Dubious, test returned 2 (wstat
> 512, 0x200)
> No subtests run
> t/02_test_binaries.t ................ Can't locate Test/More.pm in
> @INC (@INC contains: ./t
> /home/wizard/.cpan/build/MySQL-Sandbox-3.0.17-Qvi1XF/blib/lib
> /home/wizard/.cpan/build/MySQL-Sandbox-3.0.17-Qvi1XF/blib/arch
> /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5
> /usr/share/perl5
> /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at
> t/02_test_binaries.t line 10.
> BEGIN failed--compilation aborted at t/02_test_binaries.t line 10.
> t/02_test_binaries.t ................ Dubious, test returned 2 (wstat
> 512, 0x200)
> No subtests run
> t/03_test_sandbox.t ................. ok
> t/04_test_sbtool.t .................. ok
> t/05_test_smoke.t ................... ok
> t/06_test_user_defined.t ............ ok
> t/07_test_user_defined.t ............ ok
> t/08_test_single_port_checking.t .... ok
> t/09_test_multiple_port_checking.t .. ok
> t/10_check_start_restart.t .......... ok
> t/11_replication_parameters.t ....... ok
> t/12_custom_user_pwd.t .............. ok
> t/13_innodb_plugin_install.t ........ ok
> t/14_semi_synch_plugin_install.t .... ok
> t/15_user_privileges.t .............. ok
>
> Test Summary Report
> -------------------
> t/01_modules.t                    (Wstat: 512 Tests: 0 Failed: 0)
>  Non-zero exit status: 2
>  Parse errors: No plan found in TAP output
> t/02_test_binaries.t              (Wstat: 512 Tests: 0 Failed: 0)
>  Non-zero exit status: 2
>  Parse errors: No plan found in TAP output
> Files=15, Tests=13,  0 wallclock secs ( 0.07 usr  0.02 sys +  0.38
> cusr  0.08 csys =  0.55 CPU)
> Result: FAIL
> Failed 2/15 test programs. 0/13 subtests failed.
> make: *** [test_dynamic] Error 255
>  GMAX/MySQL-Sandbox-3.0.17.tar.gz
>  /usr/bin/make test -- NOT OK
> //hint// to see the cpan-testers results for installing this module, try:
>  reports GMAX/MySQL-Sandbox-3.0.17.tar.gz
> Running make install
>  make test had returned bad status, won't install without force
> Failed during this command:
>  GMAX/MySQL-Sandbox-3.0.17.tar.gz             : make_test NO
>
> cpan[5]>
>
>
> so I did
>
> sudo yum -y install perl-CPAN-Meta-YAML
>
>
> and still no luck, see:
>
> cpan[2]> install MySQL::Sandbox
> Going to read '/home/wizard/.cpan/Metadata'
>  Database was generated on Mon, 22 Aug 2011 01:33:37 GMT
> Running install for module 'MySQL::Sandbox'
> Running make for G/GM/GMAX/MySQL-Sandbox-3.0.17.tar.gz
> Checksum for
> /home/wizard/.cpan/sources/authors/id/G/GM/GMAX/MySQL-Sandbox-3.0.17.tar.gz
> ok
> Scanning cache /home/wizard/.cpan/build for sizes
>
> ............................................................................DONE
>
>  CPAN.pm: Going to build G/GM/GMAX/MySQL-Sandbox-3.0.17.tar.gz
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for MySQL::Sandbox
> Could not read
> '/home/wizard/.cpan/build/MySQL-Sandbox-3.0.17-fvHKtW/META.yml'.
> Falling back to other methods to determine prerequisites
> cp lib/MySQL/Sandbox/Scripts.pm blib/lib/MySQL/Sandbox/Scripts.pm
> cp lib/MySQL/Sandbox/Recipes.pm blib/lib/MySQL/Sandbox/Recipes.pm
> cp lib/MySQL/Sandbox.pm blib/lib/MySQL/Sandbox.pm
> cp bin/msandbox blib/script/msandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/msandbox
> cp bin/make_replication_sandbox blib/script/make_replication_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_replication_sandbox
> cp bin/make_multiple_sandbox blib/script/make_multiple_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_multiple_sandbox
> cp bin/test_sandbox blib/script/test_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/test_sandbox
> cp bin/make_sandbox blib/script/make_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_sandbox
> cp bin/make_sandbox_from_installed blib/script/make_sandbox_from_installed
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_sandbox_from_installed
> cp bin/low_level_make_sandbox blib/script/low_level_make_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/low_level_make_sandbox
> cp bin/make_multiple_custom_sandbox
> blib/script/make_multiple_custom_sandbox
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_multiple_custom_sandbox
> cp bin/sb blib/script/sb
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sb
> cp bin/sbtool blib/script/sbtool
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sbtool
> cp bin/make_sandbox_from_source blib/script/make_sandbox_from_source
> /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' --
> blib/script/make_sandbox_from_source
> Manifying blib/man3/MySQL::Sandbox::Scripts.3pm
> Manifying blib/man3/MySQL::Sandbox::Recipes.3pm
> Manifying blib/man3/MySQL::Sandbox.3pm
>  GMAX/MySQL-Sandbox-3.0.17.tar.gz
>  /usr/bin/make -- OK
> 'YAML' not installed, will not store persistent state
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/01_modules.t ...................... Can't locate Test/More.pm in
> @INC (@INC contains:
> /home/wizard/.cpan/build/MySQL-Sandbox-3.0.17-fvHKtW/blib/lib
> /home/wizard/.cpan/build/MySQL-Sandbox-3.0.17-fvHKtW/blib/arch
> /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5
> /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5
> /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at
> t/01_modules.t line 3.
> BEGIN failed--compilation aborted at t/01_modules.t line 3.
> t/01_modules.t ...................... Dubious, test returned 2 (wstat
> 512, 0x200)
> No subtests run
> t/02_test_binaries.t ................ Can't locate Test/More.pm in
> @INC (@INC contains: ./t
> /home/wizard/.cpan/build/MySQL-Sandbox-3.0.17-fvHKtW/blib/lib
> /home/wizard/.cpan/build/MySQL-Sandbox-3.0.17-fvHKtW/blib/arch
> /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5
> /usr/share/perl5
> /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at
> t/02_test_binaries.t line 10.
> BEGIN failed--compilation aborted at t/02_test_binaries.t line 10.
> t/02_test_binaries.t ................ Dubious, test returned 2 (wstat
> 512, 0x200)
> No subtests run
> t/03_test_sandbox.t ................. ok
> t/04_test_sbtool.t .................. ok
> t/05_test_smoke.t ................... ok
> t/06_test_user_defined.t ............ ok
> t/07_test_user_defined.t ............ ok
> t/08_test_single_port_checking.t .... ok
> t/09_test_multiple_port_checking.t .. ok
> t/10_check_start_restart.t .......... ok
> t/11_replication_parameters.t ....... ok
> t/12_custom_user_pwd.t .............. ok
> t/13_innodb_plugin_install.t ........ ok
> t/14_semi_synch_plugin_install.t .... ok
> t/15_user_privileges.t .............. ok
>
> Test Summary Report
> -------------------
> t/01_modules.t                    (Wstat: 512 Tests: 0 Failed: 0)
>  Non-zero exit status: 2
>  Parse errors: No plan found in TAP output
> t/02_test_binaries.t              (Wstat: 512 Tests: 0 Failed: 0)
>  Non-zero exit status: 2
>  Parse errors: No plan found in TAP output
> Files=15, Tests=13,  0 wallclock secs ( 0.06 usr  0.02 sys +  0.37
> cusr  0.07 csys =  0.52 CPU)
> Result: FAIL
> Failed 2/15 test programs. 0/13 subtests failed.
> make: *** [test_dynamic] Error 255
>  GMAX/MySQL-Sandbox-3.0.17.tar.gz
>  /usr/bin/make test -- NOT OK
> //hint// to see the cpan-testers results for installing this module, try:
>  reports GMAX/MySQL-Sandbox-3.0.17.tar.gz
> Running make install
>  make test had returned bad status, won't install without force
> Failed during this command:
>  GMAX/MySQL-Sandbox-3.0.17.tar.gz             : make_test NO
>
>
> ===========================
>
> Any hints about what to do? I'll try using the source and install like
> that. I'll reply to this thread if that works or not.
>
> Thanks
>
>  Diego
>
>
>
>
>
> --
> Diego Medina
> Web Developer
> (305) 788-4954
> diego@xxxxxxxxxxxxx
> http://www.fmpwizard.com
>
> _______________________________________________
> Mailing list: https://launchpad.net/~sandbox-developers
> Post to     : sandbox-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~sandbox-developers
> More help   : https://help.launchpad.net/ListHelp
>



-- 
The Data Charmer
http://datacharmer.org/

References